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:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user