-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8a5287
commit 1bb2f12
Showing
5 changed files
with
67 additions
and
18 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
39 changes: 39 additions & 0 deletions
39
packages/desktop-client/src/components/settings/AccountSettings.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,39 @@ | ||
import { useSelector } from 'react-redux'; | ||
|
||
import { useActions } from '../../hooks/useActions'; | ||
import { Text } from '../common/Text'; | ||
import { Checkbox } from '../forms'; | ||
|
||
import { Setting } from './UI'; | ||
|
||
export function AccountSettings() { | ||
const { savePrefs } = useActions(); | ||
const categorySuggestionsGroupNames = useSelector( | ||
state => state.prefs.local['ui.categorySuggestionsGroupNames'], | ||
); | ||
|
||
return ( | ||
<Setting | ||
primaryAction={ | ||
<Text style={{ display: 'flex' }}> | ||
<Checkbox | ||
id="settings-categorySuggestionsGroupNames" | ||
checked={categorySuggestionsGroupNames} | ||
onChange={e => | ||
savePrefs({ | ||
'ui.categorySuggestionsGroupNames': e.currentTarget.checked, | ||
}) | ||
} | ||
/> | ||
<label htmlFor="settings-categorySuggestionsGroupNames"> | ||
Include your group names in category suggestions | ||
</label> | ||
</Text> | ||
} | ||
> | ||
<Text> | ||
<strong>Accounts</strong> are where your transations are displayed, with the option to organize all your records into categories. | ||
</Text> | ||
</Setting> | ||
); | ||
} |
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,5 +1,5 @@ | ||
--- | ||
category: Enhancement | ||
category: Enhancements | ||
authors: [postonsundays] | ||
--- | ||
|
||
|