Skip to content

Commit

Permalink
fix: better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Oct 29, 2023
1 parent d011caf commit 15be28b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/locales/lib/human/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -672,5 +672,5 @@
"fast": "Fast",
"charged": "Charged",
"offline_mode": "Offline Mode",
"disable": "Disable {{name}}"
}
"disable": "Disable {{- name}}"
}
8 changes: 3 additions & 5 deletions src/components/layout/drawer/BoolToggle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ export default function BoolToggle({
return (
<ListItem>
{children}
<ListItemText
primary={
t(label, fromSnakeCase(label)) ?? t(field, fromSnakeCase(field))
}
/>
<ListItemText sx={{ maxWidth: 150 }}>
{t(label, fromSnakeCase(label)) ?? t(field, fromSnakeCase(field))}
</ListItemText>
<Switch
edge="end"
onChange={onChange}
Expand Down

0 comments on commit 15be28b

Please sign in to comment.