-
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.
chore(settings): add list of mandatory experiences (#87)
* chore(settings): add list of mandatory experiences * chore(docs): update goals
- Loading branch information
Showing
10 changed files
with
206 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
"class", | ||
"cx", | ||
"iteratorClassName", | ||
"listClassName", | ||
"localStyles.*" | ||
], | ||
"yaml.schemas": { | ||
|
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
43 changes: 43 additions & 0 deletions
43
src/features/settings/components/MandatoryExperienceSettings.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,43 @@ | ||
import { useTranslation } from 'next-i18next'; | ||
import { FunctionComponent } from 'react'; | ||
|
||
import SettingsBlock from './SettingsBlock'; | ||
import SettingsBlockRow from './SettingsBlockRow'; | ||
|
||
import FormCheckbox from '@/components/atoms/Checkbox'; | ||
|
||
const MandatoryExperienceSettings: FunctionComponent = () => { | ||
const { t } = useTranslation(['settings', 'common']); | ||
return ( | ||
<SettingsBlock title={t('settings:section.mandatoryExperienceFlags.title')}> | ||
<SettingsBlockRow | ||
label={t( | ||
'settings:section.mandatoryExperienceFlags.unreasonableContent', | ||
)}> | ||
<FormCheckbox name="unreasonable_content" checked={true} disabled /> | ||
</SettingsBlockRow> | ||
<SettingsBlockRow | ||
label={t('settings:section.mandatoryExperienceFlags.impossibleLogin')}> | ||
<FormCheckbox name="impossible_login" checked={true} disabled /> | ||
</SettingsBlockRow> | ||
<SettingsBlockRow | ||
label={t( | ||
'settings:section.mandatoryExperienceFlags.impossibleRegistration', | ||
)}> | ||
<FormCheckbox name="impossible_registration" checked={true} disabled /> | ||
</SettingsBlockRow> | ||
<SettingsBlockRow | ||
label={t( | ||
'settings:section.mandatoryExperienceFlags.impossiblePasswordReminder', | ||
)}> | ||
<FormCheckbox | ||
name="impossible_password_reminder" | ||
checked={true} | ||
disabled | ||
/> | ||
</SettingsBlockRow> | ||
</SettingsBlock> | ||
); | ||
}; | ||
|
||
export default MandatoryExperienceSettings; |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export { default as ExperienceSettings } from './components/ExperienceSettings'; | ||
export { default as UserGrantsSettings } from './components/UserGrantsSettings'; | ||
export { default as PreferencesSettings } from './components/PreferencesSettings'; | ||
export { default as RuntimeSettings } from './components/RuntimeSettings'; | ||
export { default as UserGrantsSettings } from './components/UserGrantsSettings'; | ||
export { default as MandatoryExperienceSettings } from './components/MandatoryExperienceSettings'; |
Oops, something went wrong.