This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
-
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.
feat: reorder random text characters
- Loading branch information
Showing
10 changed files
with
111 additions
and
37 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
25 changes: 17 additions & 8 deletions
25
...es/Home/components/SettingSection/AdvancedSettingsDetails/ReorderRandomTextCharacters.jsx
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,17 +1,26 @@ | ||
import { useTranslation } from 'react-i18next'; | ||
// import { useRecoilState, useRecoilValue } from 'recoil'; | ||
import { useRecoilState, useRecoilValue } from 'recoil'; | ||
import Typography from '@mui/material/Typography'; | ||
// import * as mainState from '~/store/atoms/main'; | ||
// import * as mainValue from '~/store/selectors/main'; | ||
import Radio from '@mui/material/Radio'; | ||
import RadioGroup from '@mui/material/RadioGroup'; | ||
import FormControlLabel from '@mui/material/FormControlLabel'; | ||
import FormControl from '@mui/material/FormControl'; | ||
import * as mainState from '~/store/atoms/main'; | ||
import * as mainValue from '~/store/selectors/main'; | ||
|
||
export default function ReorderRandomTextCharacters() { | ||
export default function ReorderRandomTextCharacters({ reorderState, disabledValue }) { | ||
const { t } = useTranslation(); | ||
// const [length, setLength] = useRecoilState(mainState[lengthState]); | ||
// const disabled = useRecoilValue(mainValue[disabledValue]); | ||
const [value, setValue] = useRecoilState(mainState[reorderState]); | ||
const disabled = useRecoilValue(mainValue[disabledValue]); | ||
|
||
return ( | ||
<> | ||
<FormControl> | ||
<Typography>{t('Reorder random text characters:')}</Typography> | ||
</> | ||
<RadioGroup row name="reorderRandomTextCharacters" value={value} onChange={(e) => setValue(e.target.value)}> | ||
<FormControlLabel value="none" control={<Radio />} label={t('None')} disabled={disabled} /> | ||
<FormControlLabel value="digitWord" control={<Radio />} label={t('Digit+Word')} disabled={disabled} /> | ||
<FormControlLabel value="wordDigit" control={<Radio />} label={t('Word+Digit')} disabled={disabled} /> | ||
</RadioGroup> | ||
</FormControl> | ||
); | ||
} |
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
7 changes: 6 additions & 1 deletion
7
src/pages/Home/components/SettingSection/GeneralSettingsDetails/HighlightStopWords.jsx
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
7 changes: 6 additions & 1 deletion
7
src/pages/Home/components/SettingSection/GeneralSettingsDetails/LimitTextLength.jsx
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
7 changes: 6 additions & 1 deletion
7
src/pages/Home/components/SettingSection/GeneralSettingsDetails/RemoveSpecialCharacters.jsx
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