Skip to content

Commit 3972c04

Browse files
committed
fix: fix naming to better describe buttons
1 parent d4204d6 commit 3972c04

File tree

5 files changed

+48
-40
lines changed

5 files changed

+48
-40
lines changed

src/App.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import { Box } from '@chakra-ui/core'
22
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'
49

510
import ThemeX from './components/theme'
6-
import Home from './pages'
11+
import Chat from './pages/Chat'
712
import Explore from './pages/Explore'
813
import Globe from './pages/Globe'
914
import Users from './pages/Users'
@@ -25,8 +30,11 @@ const App: FunctionComponent = () => {
2530
<Route path="/explore">
2631
<Explore />
2732
</Route>
33+
<Route path="/chat">
34+
<Chat />
35+
</Route>
2836
<Route path="/">
29-
<Home />
37+
<Redirect to="/explore" />
3038
</Route>
3139
</Switch>
3240
</div>

src/components/organisms/NavSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function Sidebar() {
8585
justify="space-between"
8686
paddingY="75px"
8787
>
88-
<Link to="/">
88+
<Link to="/chat">
8989
<FontAwesomeIcon
9090
color="#979797"
9191
size="lg"

src/pages/Chat.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

src/pages/Explore.tsx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,36 @@
1+
import { Stack, Text } from '@chakra-ui/core'
12
import React from 'react'
23

4+
import GroupHeading from '../components/atoms/GroupHeading'
5+
import DropsList from '../components/molecules/DropsList'
36
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'
410

511
interface IExplorePage {}
612
export default function ExplorePage({}: IExplorePage) {
713
return (
814
<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>
1034
</DisplayNavAndPage>
1135
)
1236
}

src/pages/index.tsx

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

0 commit comments

Comments
 (0)