forked from e-mission/e-mission-phone
-
Notifications
You must be signed in to change notification settings - Fork 0
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 e-mission#1035 from e-mission/label_dashboard_prof…
…ile_sept_2023 Merge 1.4.8 to master
- Loading branch information
Showing
67 changed files
with
2,213 additions
and
1,263 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from "react"; | ||
import { Modal, ScrollView, useWindowDimensions, View } from "react-native"; | ||
import { Button, Dialog, Text } from 'react-native-paper'; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
const ExplainPermissions = ({ explanationList, visible, setVisible }) => { | ||
const { t } = useTranslation(); | ||
const { height: windowHeight } = useWindowDimensions(); | ||
|
||
return ( | ||
<Modal visible={visible} | ||
onDismiss={() => setVisible(false)} > | ||
<Dialog visible={visible} | ||
onDismiss={() => setVisible(false)} > | ||
<Dialog.Title>{t('intro.appstatus.explanation-title')}</Dialog.Title> | ||
<Dialog.Content style={{maxHeight: windowHeight/1.5, paddingBottom: 0}}> | ||
<ScrollView> | ||
{explanationList?.map((li) => | ||
<View key={li.name}> | ||
<Text variant="headlineSmall" key={li.name}> | ||
{li.name} | ||
</Text> | ||
<Text variant="bodyMedium"> | ||
{li.desc} | ||
</Text> | ||
</View> | ||
)} | ||
</ScrollView> | ||
</Dialog.Content> | ||
<Dialog.Actions> | ||
<Button | ||
onPress={() => setVisible(false)}> | ||
{t('join.close')} | ||
</Button> | ||
</Dialog.Actions> | ||
</Dialog> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default ExplainPermissions; |
Oops, something went wrong.