-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: datalens-weblate-robot <[email protected]> Co-authored-by: Darya Tikhonova <[email protected]>
- Loading branch information
1 parent
5c0ce18
commit 793e3fe
Showing
12 changed files
with
89 additions
and
6 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
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
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
35 changes: 35 additions & 0 deletions
35
src/ui/components/AsideHeaderAdapter/VersionDialog/VersionDialog.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,35 @@ | ||
import React from 'react'; | ||
|
||
import {Dialog, Text, spacing} from '@gravity-ui/uikit'; | ||
import {i18n} from 'i18n'; | ||
import DialogManager from 'ui/components/DialogManager/DialogManager'; | ||
|
||
export const DIALOG_RELEASE_VERSION = Symbol('DIALOG_RELEASE_VERSION'); | ||
|
||
type VersionDialogProps = { | ||
releaseVersion: string; | ||
open: boolean; | ||
onClose: VoidFunction; | ||
}; | ||
|
||
export type OpenDialogReleaseVersionArgs = { | ||
id: typeof DIALOG_RELEASE_VERSION; | ||
props: VersionDialogProps; | ||
}; | ||
|
||
export function VersionDialog({releaseVersion, open, onClose}: VersionDialogProps) { | ||
return ( | ||
<Dialog open={open} onClose={onClose} size="s"> | ||
<Dialog.Header caption={i18n('component.aside-header.view', 'label_about')} /> | ||
<Dialog.Body> | ||
<Text variant="subheader-1" className={spacing({mr: 2})}> | ||
{i18n('component.aside-header.view', 'label_app-version')}: | ||
</Text> | ||
{releaseVersion} | ||
</Dialog.Body> | ||
<Dialog.Footer /> | ||
</Dialog> | ||
); | ||
} | ||
|
||
DialogManager.registerDialog(DIALOG_RELEASE_VERSION, VersionDialog); |
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