Skip to content

Commit a1bfd8b

Browse files
committed
removed redux
1 parent fb278df commit a1bfd8b

File tree

11 files changed

+606
-7049
lines changed

11 files changed

+606
-7049
lines changed

package-lock.json

Lines changed: 554 additions & 6688 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"dayjs": "^1.11.7",
6363
"intl-messageformat": "^10.5.0",
6464
"mime-types": "^2.1.35",
65-
"outdated": "^0.1.1",
6665
"react-awesome-slider": "^4.1.0",
6766
"react-intl": "^6.4.4",
6867
"react-joyride": "^2.5.3",
@@ -142,7 +141,6 @@
142141
"@atlaskit/tokens": "^1.2.18",
143142
"@emotion/styled": "^11.11.0",
144143
"@monaco-editor/react": "^4.4.6",
145-
"@reduxjs/toolkit": "^1.9.5",
146144
"react": "^16.8.0",
147145
"react-dom": "^16.8.0"
148146
}

showcase/src/App.tsx

Lines changed: 42 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import ShowcaseLeftSidebar from "./components/ShowcaseLeftSidebar"
55
import { BrowserRouter, Navigate, Route, Routes } from "react-router-dom"
66
import IntroPage from "./page/IntroPage"
77
import NotFoundPage from "./page/NotFoundPage"
8-
import ReduxPage from "./page/ReduxPage"
9-
10-
import { appStore } from "./state/appStore"
11-
import { Provider } from "react-redux"
128

139
import { LocaleProvider } from "@linked-planet/ui-kit-ts"
1410
import SinglePage from "./page/SinglePage"
@@ -21,57 +17,49 @@ import "@atlaskit/css-reset" // sets base styles ot AK
2117
export default function App() {
2218
return (
2319
<BrowserRouter basename="ui-kit-ts">
24-
<Provider store={appStore}>
25-
<LocaleProvider>
26-
<div className="App">
27-
<PageLayout>
28-
<ShowcaseTopNavigation />
29-
<Content>
30-
<ShowcaseLeftSidebar />
20+
<LocaleProvider>
21+
<div className="App">
22+
<PageLayout>
23+
<ShowcaseTopNavigation />
24+
<Content>
25+
<ShowcaseLeftSidebar />
3126

32-
<Main>
33-
<main
34-
style={{
35-
margin: "12px 12px",
36-
display: "flex",
37-
flexDirection: "column",
38-
}}
39-
>
40-
<Routes>
41-
<Route
42-
path="/"
43-
element={
44-
<Navigate to="/intro" />
45-
}
46-
/>
47-
<Route
48-
path="/intro"
49-
element={<IntroPage />}
50-
/>
51-
<Route
52-
path="/wrappers"
53-
element={<WrappersPage />}
54-
/>
55-
<Route
56-
path="/single"
57-
element={<SinglePage />}
58-
/>
59-
<Route
60-
path="/redux"
61-
element={<ReduxPage />}
62-
/>
63-
<Route
64-
path="*"
65-
element={<NotFoundPage />}
66-
/>
67-
</Routes>
68-
</main>
69-
</Main>
70-
</Content>
71-
</PageLayout>
72-
</div>
73-
</LocaleProvider>
74-
</Provider>
27+
<Main>
28+
<main
29+
style={{
30+
margin: "12px 12px",
31+
display: "flex",
32+
flexDirection: "column",
33+
}}
34+
>
35+
<Routes>
36+
<Route
37+
path="/"
38+
element={<Navigate to="/intro" />}
39+
/>
40+
<Route
41+
path="/intro"
42+
element={<IntroPage />}
43+
/>
44+
<Route
45+
path="/wrappers"
46+
element={<WrappersPage />}
47+
/>
48+
<Route
49+
path="/single"
50+
element={<SinglePage />}
51+
/>
52+
<Route
53+
path="*"
54+
element={<NotFoundPage />}
55+
/>
56+
</Routes>
57+
</main>
58+
</Main>
59+
</Content>
60+
</PageLayout>
61+
</div>
62+
</LocaleProvider>
7563
</BrowserRouter>
7664
)
7765
}

showcase/src/components/ShowcaseTopNavigation.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ function ShowcaseTopNavigation() {
4444
>
4545
<span>Single Components</span>
4646
</PrimaryButton>,
47-
<PrimaryButton key={2} onClick={() => navigation("/redux")}>
48-
<span>Redux</span>
49-
</PrimaryButton>,
5047
<div
5148
key={4}
5249
style={{

showcase/src/page/IntroPage.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import React from "react"
2-
import { useDispatch } from "react-redux"
3-
import { useEffect } from "react"
42
import styled from "@emotion/styled"
53
import { token } from "@atlaskit/tokens"
64

@@ -19,13 +17,6 @@ const Code = styled.div`
1917
`
2018

2119
function IntroPage() {
22-
const dispatch = useDispatch()
23-
useEffect(() => {
24-
dispatch({
25-
type: "SET_MENU",
26-
})
27-
}, [dispatch])
28-
2920
return (
3021
<div
3122
style={{

showcase/src/page/NotFoundPage.tsx

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
1-
import React, { useEffect } from "react";
2-
import EmptyState from "@atlaskit/empty-state";
3-
import Button from "@atlaskit/button";
4-
import { useNavigate } from "react-router";
5-
import { useDispatch } from "react-redux";
1+
import React from "react"
2+
import EmptyState from "@atlaskit/empty-state"
3+
import Button from "@atlaskit/button"
4+
import { useNavigate } from "react-router"
65

7-
function NotFoundPage () {
6+
function NotFoundPage() {
87
const navigation = useNavigate()
98

10-
const dispatch = useDispatch()
11-
useEffect( () => {
12-
dispatch( {
13-
type: "SET_MENU"
14-
} )
15-
}, [ dispatch ] )
16-
179
return (
1810
<EmptyState
1911
header="404 - Not found"
20-
description={ <span>The page you were looking for doesn&apos;t exist...</span> }
12+
description={
13+
<span>The page you were looking for doesn&apos;t exist...</span>
14+
}
2115
primaryAction={
22-
<Button
23-
onClick={ () => navigation( "/" ) }
24-
appearance="primary"
25-
>
16+
<Button onClick={() => navigation("/")} appearance="primary">
2617
Back to start
2718
</Button>
2819
}
2920
/>
3021
)
3122
}
3223

33-
export default NotFoundPage;
24+
export default NotFoundPage

showcase/src/page/ReduxPage.tsx

Lines changed: 0 additions & 156 deletions
This file was deleted.

showcase/src/state/appStore.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)