Skip to content

Commit

Permalink
refactor: Remove (set)BlockLoading from store as it's unused
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jul 9, 2024
1 parent 021edec commit a3d5b59
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/src/util/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ import IBlock from "@/types/Block";

interface BlockSlice {
block?: IBlock;
blockLoading: boolean;
setBlock: (block: IBlock) => void;
setBlockLoading: (blockLoading: boolean) => void;
}

const createBlockSlice: StateCreator<BlockSlice> = (set) => ({
block: undefined,
blockLoading: true,
setBlock: (block) => set(() => ({ block })),
setBlockLoading: (blockLoading) => set(() => ({ blockLoading }))
});

interface StructuredData {
Expand Down

0 comments on commit a3d5b59

Please sign in to comment.