-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display GraphExplorer version in client UI (#46)
* Display GraphExplorer version in client UI * Update version number to 1.1.0 --------- Co-authored-by: Michael Chin <[email protected]>
- Loading branch information
1 parent
7c6d142
commit 295d8a0
Showing
13 changed files
with
92 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "graph-explorer", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Graph Explorer", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "graph-explorer", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Graph Explorer", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/graph-explorer/src/components/Workspace/components/WorkspaceTopBarVersion.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { cx } from "@emotion/css"; | ||
import type { PropsWithChildren } from "react"; | ||
import { useWithTheme, withClassNamePrefix } from "../../../core"; | ||
import styles from "../Workspace.styles"; | ||
|
||
export type WorkspaceTopBarVersionProps = { | ||
className?: string; | ||
classNamePrefix?: string; | ||
}; | ||
|
||
const WorkspaceTopBarVersion = ({ | ||
className, | ||
classNamePrefix = "ft", | ||
children, | ||
}: PropsWithChildren<WorkspaceTopBarVersionProps>) => { | ||
const pfx = withClassNamePrefix(classNamePrefix); | ||
const stylesWithTheme = useWithTheme(); | ||
return ( | ||
<div | ||
className={cx( | ||
stylesWithTheme(styles.topBarTitleVersion), | ||
pfx("top-bar-version"), | ||
className | ||
)} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
WorkspaceTopBarVersion.displayName = "WorkspaceTopBarVersion"; | ||
|
||
export default WorkspaceTopBarVersion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters