File tree Expand file tree Collapse file tree 5 files changed +48
-40
lines changed Expand file tree Collapse file tree 5 files changed +48
-40
lines changed Original file line number Diff line number Diff line change 1
1
import { Box } from '@chakra-ui/core'
2
2
import React , { FunctionComponent } from 'react'
3
- import { BrowserRouter as Router , Route , Switch } from 'react-router-dom'
3
+ import {
4
+ BrowserRouter as Router ,
5
+ Redirect ,
6
+ Route ,
7
+ Switch ,
8
+ } from 'react-router-dom'
4
9
5
10
import ThemeX from './components/theme'
6
- import Home from './pages'
11
+ import Chat from './pages/Chat '
7
12
import Explore from './pages/Explore'
8
13
import Globe from './pages/Globe'
9
14
import Users from './pages/Users'
@@ -25,8 +30,11 @@ const App: FunctionComponent = () => {
25
30
< Route path = "/explore" >
26
31
< Explore />
27
32
</ Route >
33
+ < Route path = "/chat" >
34
+ < Chat />
35
+ </ Route >
28
36
< Route path = "/" >
29
- < Home />
37
+ < Redirect to = "/explore" />
30
38
</ Route >
31
39
</ Switch >
32
40
</ div >
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default function Sidebar() {
85
85
justify = "space-between"
86
86
paddingY = "75px"
87
87
>
88
- < Link to = "/" >
88
+ < Link to = "/chat " >
89
89
< FontAwesomeIcon
90
90
color = "#979797"
91
91
size = "lg"
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ import DisplayNavAndPage from '../components/organisms/DisplayNavAndPage'
4
+
5
+ export default function Chat ( ) : JSX . Element {
6
+ return (
7
+ < DisplayNavAndPage >
8
+ < h1 > Chat</ h1 >
9
+ </ DisplayNavAndPage >
10
+ )
11
+ }
Original file line number Diff line number Diff line change
1
+ import { Stack , Text } from '@chakra-ui/core'
1
2
import React from 'react'
2
3
4
+ import GroupHeading from '../components/atoms/GroupHeading'
5
+ import DropsList from '../components/molecules/DropsList'
3
6
import DisplayNavAndPage from '../components/organisms/DisplayNavAndPage'
7
+ import FindInterface from '../components/organisms/FindInterface'
8
+ import Recommended from '../components/organisms/Recommended'
9
+ import Trending from '../components/organisms/Trending'
4
10
5
11
interface IExplorePage { }
6
12
export default function ExplorePage ( { } : IExplorePage ) {
7
13
return (
8
14
< DisplayNavAndPage >
9
- < h1 > Explore</ h1 >
15
+ < FindInterface />
16
+ < GroupHeading >
17
+ < Text > Drops</ Text >
18
+ </ GroupHeading >
19
+ < DropsList />
20
+ < Stack spacing = { 4 } marginTop = "15px" direction = "row" >
21
+ < Stack spacing = { 4 } >
22
+ < GroupHeading >
23
+ < Text > Trending</ Text >
24
+ </ GroupHeading >
25
+ < Trending />
26
+ </ Stack >
27
+ < Stack spacing = { 4 } >
28
+ < GroupHeading >
29
+ < Text > Recommended For You</ Text >
30
+ </ GroupHeading >
31
+ < Recommended />
32
+ </ Stack >
33
+ </ Stack >
10
34
</ DisplayNavAndPage >
11
35
)
12
36
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments