Simplify local storage access

The caching for local storage seems way over-engineered.
With this the context for the local storage is removed
and the local storage is accessed directly.

Pushed-by: k8s-git-ops<admin@cloudogu.com>
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
Rene Pfeuffer
2024-10-28 15:05:13 +01:00
parent 824f4224d1
commit 141e45aa06
11 changed files with 90 additions and 147 deletions

View File

@@ -16,7 +16,6 @@
import { storiesOf } from "@storybook/react";
import React, { ReactElement } from "react";
import { LocalStorageProvider } from "@scm-manager/ui-api";
import SecondaryNavigation from "./SecondaryNavigation";
import SecondaryNavigationItem from "./SecondaryNavigationItem";
import styled from "styled-components";
@@ -45,7 +44,6 @@ const withRoute = (route: string) => {
};
storiesOf("Secondary Navigation", module)
.addDecorator((story) => <LocalStorageProvider>{story()}</LocalStorageProvider>)
.addDecorator((story) => (
<Columns className="columns">
<div className="column is-3">{story()}</div>