Skip to content
Snippets Groups Projects
Unverified Commit e6b5c358 authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Move Settings to the sidebar (#455)

parent d7e6c9c1
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,6 @@ function EditableBudgetName({ prefs, savePrefs }) {
let items = [
{ name: 'rename', text: 'Rename Budget' },
{ name: 'settings', text: 'Settings' },
...(Platform.isBrowser ? [{ name: 'help', text: 'Help' }] : []),
{ name: 'close', text: 'Close File' }
];
......
......@@ -444,7 +444,7 @@ function Tools() {
let onToggle = useCallback(() => setOpen(open => !open), []);
let location = useLocation();
const isActive = ['/payees', '/rules', '/tools'].some(route =>
const isActive = ['/payees', '/rules', '/settings', '/tools'].some(route =>
location.pathname.startsWith(route)
);
......@@ -477,6 +477,12 @@ function Tools() {
to="/rules"
indent={15}
/>
<SecondaryItem
title="Settings"
Icon={Cog}
to="/settings"
indent={15}
/>
</>
)}
</View>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment