forked from acaldas/document-model-electron
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #529 from powerhouse-inc/update-connect-footer
feat: added disclaimer update to connect footer
- Loading branch information
Showing
6 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { ReadRequiredModal } from '@powerhousedao/design-system'; | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
export interface DisclaimerModalProps { | ||
open: boolean; | ||
onClose: () => void; | ||
} | ||
|
||
export const DisclaimerModal: React.FC<DisclaimerModalProps> = props => { | ||
const { open, onClose } = props; | ||
|
||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<ReadRequiredModal | ||
open={open} | ||
header={t('modals.disclaimer.title')} | ||
body={t('modals.disclaimer.body')} | ||
closeLabel="Close" | ||
onContinue={() => onClose()} | ||
/> | ||
); | ||
}; |
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