This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
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 #514 from cds-snc/add-tip-back
Add link to manual contact tracing page to Ontario "Thank you" screen
- Loading branch information
Showing
6 changed files
with
64 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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import {Box, ButtonSingleLine, Icon, Text} from 'components'; | ||
import {Linking} from 'react-native'; | ||
import {useI18n} from '@shopify/react-i18n'; | ||
|
||
export const Tip = () => { | ||
const [i18n] = useI18n(); | ||
return ( | ||
<Box backgroundColor="green2" borderRadius={10} paddingVertical="m" marginTop="m" marginBottom="xl"> | ||
<Box flexDirection="row" paddingLeft="s" paddingRight="m"> | ||
<Box flex={0} paddingTop="xxs" marginRight="xxs"> | ||
<Icon name="icon-light-bulb" size={40} /> | ||
</Box> | ||
<Box flex={1}> | ||
<Text> | ||
<Text fontWeight="bold">{i18n.translate('Home.DiagnosedView.TipTitle')}</Text> | ||
<Text>{i18n.translate('Home.DiagnosedView.TipBody')}</Text> | ||
</Text> | ||
</Box> | ||
</Box> | ||
<Box paddingHorizontal="m" paddingTop="s"> | ||
<ButtonSingleLine | ||
text={i18n.translate('Home.DiagnosedView.TipLinkText')} | ||
variant="thinFlatNeutralGrey" | ||
externalLink | ||
onPress={() => Linking.openURL(i18n.translate('Home.DiagnosedView.TipURL'))} | ||
/> | ||
</Box> | ||
</Box> | ||
); | ||
}; |
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