-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Expose version from package.json to app * Setup beta info component * Update header with beta info + tweak for small screens * Use latest commit hash instead of package.json version
- Loading branch information
Showing
7 changed files
with
76 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import 'src/design-system/variables/variables.scss'; | ||
@import 'src/design-system/variables/colors.scss'; | ||
@import 'src/design-system/variables/typography.scss'; | ||
|
||
.wrapper { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 16px; | ||
} | ||
|
||
.badge { | ||
padding: 4px 16px; | ||
border-radius: 4px; | ||
background-color: $color-success-100; | ||
color: $color-success-700; | ||
text-align: center; | ||
@include label(); | ||
} | ||
|
||
.version { | ||
@include paragraph-x-small(); | ||
white-space: nowrap; | ||
} |
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,19 @@ | ||
import { Tooltip } from 'design-system/components/tooltip/tooltip' | ||
import styles from './beta-info.module.scss' | ||
|
||
const COPY = { | ||
LABEL: 'Beta', | ||
INFO: 'All data is considered test data and may be changed or deleted at any time. Use with caution.', | ||
VERSION: `Build ${__COMMIT_HASH__}`, | ||
} | ||
|
||
export const BetaInfo = () => { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<Tooltip content={COPY.INFO}> | ||
<div className={styles.badge}>{COPY.LABEL}</div> | ||
</Tooltip> | ||
<span className={styles.version}>{COPY.VERSION}</span> | ||
</div> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
declare const __COMMIT_HASH__: string |
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