Skip to content

Commit

Permalink
feat: webui nav sidebar dropdown text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JComins000 committed Mar 27, 2024
1 parent 18dd29e commit c3106ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions webui/react/src/components/NavigationSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,15 @@ const NavigationSideBar: React.FC = () => {
const items: MenuItem[] = [
{
key: 'settings',
label: <Link onClick={() => setShowSettings(true)}>Settings</Link>,
label: <Link onClick={() => setShowSettings(true)}>User Settings</Link>,
},
{ key: 'theme-toggle', label: <ThemeToggle /> },
{ key: 'sign-out', label: <Link path={paths.logout()}>Sign Out</Link> },
];
if (canAdministrateUsers) {
items.unshift({
key: 'admin',
label: <Link path={paths.admin()}>Admin</Link>,
label: <Link path={paths.admin()}>Admin Settings</Link>,
});
}
return items;
Expand Down
6 changes: 3 additions & 3 deletions webui/react/src/components/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ interface ThemeOption {
export const ThemeOptions: Record<Mode, ThemeOption> = {
[Mode.Light]: {
className: Mode.Light,
displayName: 'Light Mode',
displayName: 'Day Theme',
next: Mode.Dark,
},
[Mode.Dark]: {
className: Mode.Dark,
displayName: 'Dark Mode',
displayName: 'Night Theme',
next: Mode.System,
},
[Mode.System]: {
className: Mode.System,
displayName: 'System Mode',
displayName: 'System Theme',
next: Mode.Light,
},
};
Expand Down
2 changes: 1 addition & 1 deletion webui/react/src/components/UserSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const UserSettings: React.FC<Props> = ({ show, onClose }: Props) => {
const shortcutSettings = { ...shortcutSettingsDefaults, ...(savedShortcutSettings ?? {}) };

return (
<Drawer open={show} placement="left" title="Settings" onClose={onClose}>
<Drawer open={show} placement="left" title="User Settings" onClose={onClose}>
<Section divider title="Profile">
<div className={css.section}>
<InlineForm<string>
Expand Down

0 comments on commit c3106ba

Please sign in to comment.