fix: Embed disabled state should persist (#3407)

* Normalize code around localStorage
Persist disabled embed state

* fix: Cannot view more than 10 starred items on load

* More tidying of sidebar state
This commit is contained in:
Tom Moor
2022-04-17 10:24:40 -07:00
committed by GitHub
parent 1e1a57d246
commit e4e98286f4
11 changed files with 267 additions and 192 deletions

View File

@@ -39,20 +39,21 @@ function SettingsSidebar() {
<Scrollable shadow>
{Object.keys(groupedConfig).map((header) => (
<Section key={header}>
<Header>{header}</Header>
{groupedConfig[header].map((item) => (
<SidebarLink
key={item.path}
to={item.path}
icon={<item.icon color="currentColor" />}
label={item.name}
/>
))}
<Header title={header}>
{groupedConfig[header].map((item) => (
<SidebarLink
key={item.path}
to={item.path}
icon={<item.icon color="currentColor" />}
label={item.name}
/>
))}
</Header>
</Section>
))}
{!isHosted && (
<Section>
<Header>{t("Installation")}</Header>
<Header title={t("Installation")} />
<Version />
</Section>
)}