diff options
author | 2021-10-15 14:02:33 +0530 | |
---|---|---|
committer | 2021-10-15 14:02:33 +0530 | |
commit | 184c8fbaa6ea3fb13af93ec023252af8802040a3 (patch) | |
tree | ba3671d972d74f524a07609a49b80a885ebe2115 /uidev/src/stores | |
parent | update recipes to pull in pnpm upgrade and workspace fix. (diff) | |
download | ferdium-app-184c8fbaa6ea3fb13af93ec023252af8802040a3.tar.gz ferdium-app-184c8fbaa6ea3fb13af93ec023252af8802040a3.tar.zst ferdium-app-184c8fbaa6ea3fb13af93ec023252af8802040a3.zip |
Remove unused 'uidev' folder. (#2076)
Diffstat (limited to 'uidev/src/stores')
-rw-r--r-- | uidev/src/stores/index.ts | 5 | ||||
-rw-r--r-- | uidev/src/stores/stories.ts | 41 |
2 files changed, 0 insertions, 46 deletions
diff --git a/uidev/src/stores/index.ts b/uidev/src/stores/index.ts deleted file mode 100644 index 276058ec4..000000000 --- a/uidev/src/stores/index.ts +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | import { storyStore } from './stories'; | ||
2 | |||
3 | export const store = { | ||
4 | stories: storyStore, | ||
5 | }; | ||
diff --git a/uidev/src/stores/stories.ts b/uidev/src/stores/stories.ts deleted file mode 100644 index 12bacdd59..000000000 --- a/uidev/src/stores/stories.ts +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | export type StorySectionName = string; | ||
2 | export type StoryName = string; | ||
3 | export type StoryComponent = () => JSX.Element; | ||
4 | |||
5 | export interface IStories { | ||
6 | name: string; | ||
7 | component: StoryComponent; | ||
8 | } | ||
9 | |||
10 | export interface ISections { | ||
11 | name: StorySectionName; | ||
12 | stories: IStories[]; | ||
13 | } | ||
14 | |||
15 | export interface IStoryStore { | ||
16 | sections: ISections[]; | ||
17 | } | ||
18 | |||
19 | export const storyStore: IStoryStore = { | ||
20 | sections: [], | ||
21 | }; | ||
22 | |||
23 | export const storiesOf = (name: StorySectionName) => { | ||
24 | const length = storyStore.sections.push({ | ||
25 | name, | ||
26 | stories: [], | ||
27 | }); | ||
28 | |||
29 | const actions = { | ||
30 | add: (name: StoryName, component: StoryComponent) => { | ||
31 | storyStore.sections[length - 1].stories.push({ | ||
32 | name, | ||
33 | component, | ||
34 | }); | ||
35 | |||
36 | return actions; | ||
37 | }, | ||
38 | }; | ||
39 | |||
40 | return actions; | ||
41 | }; | ||