-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(settings): provide privacypolicy URL&change default settings for …
…mas (#1471) * fix(settings): provide privacypolicy URL&change default settings for mas * fix(setupdialog): give react hook a dependency * fix(settings): disable all settings by default & add links to general
- Loading branch information
1 parent
152f8be
commit c6de423
Showing
8 changed files
with
148 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import List from '@material-ui/core/List'; | ||
import ListItem from '@material-ui/core/ListItem'; | ||
import ListItemIcon from '@material-ui/core/ListItemIcon'; | ||
import ListItemText from '@material-ui/core/ListItemText'; | ||
import ListSubheader from '@material-ui/core/ListSubheader'; | ||
|
||
import PolicyIcon from '@material-ui/icons/Policy'; | ||
|
||
export default function SettingsLinkList() { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<List | ||
subheader={ | ||
<ListSubheader>{t('settings.links.header')}</ListSubheader> | ||
} | ||
> | ||
<a | ||
href="https://www.lumi.education/app/privacy-policy" | ||
target="_blank" | ||
rel="noreferrer" | ||
style={{ color: 'inherit', textDecoration: 'inherit' }} | ||
> | ||
<ListItem> | ||
<ListItemIcon> | ||
<PolicyIcon /> | ||
</ListItemIcon> | ||
<ListItemText | ||
id="switch-list-label-privacy-policy" | ||
primary={ | ||
'https://www.Lumi.education/app/privacy-policy' | ||
} | ||
secondary={t('privacy_policy.title')} | ||
/> | ||
</ListItem> | ||
</a> | ||
</List> | ||
); | ||
} |
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