Skip to content

Commit 8460ce0

Browse files
committed
arrangment
1 parent 57e2269 commit 8460ce0

File tree

181 files changed

+4208
-4169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+4208
-4169
lines changed

.eslintrc.cjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
env: { browser: true, es2020: true },
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:react/recommended',
6+
'plugin:react/jsx-runtime',
7+
'plugin:react-hooks/recommended',
8+
],
9+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
10+
settings: { react: { version: '18.2' } },
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': 'warn',
14+
},
15+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

App.jsx renamed to src/App.jsx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
import { Route, Routes } from 'react-router-dom'
2-
import { Stake, Home } from './pages'
3-
import { StakeContainer } from './components'
4-
function App() {
5-
const path ={
6-
home:"/",
7-
stake:"/stake",
8-
reward:"/reward"
9-
10-
}
11-
12-
return (
13-
<>
14-
<div>
15-
<Routes>
16-
<Route path={path.stake} element={<StakeContainer />}>
17-
<Route index element={<Stake/>} />
18-
</Route>
19-
<Route path={path.home} element={<Home/>} />
20-
</Routes>
21-
</div>
22-
</>
23-
)
24-
}
25-
26-
export default App
1+
import { Route, Routes } from 'react-router-dom'
2+
import { Stake, Home } from './pages'
3+
import { StakeContainer } from './components'
4+
function App() {
5+
const path ={
6+
home:"/",
7+
stake:"/stake",
8+
reward:"/reward"
9+
10+
}
11+
12+
return (
13+
<>
14+
<div>
15+
<Routes>
16+
<Route path={path.stake} element={<StakeContainer />}>
17+
<Route index element={<Stake/>} />
18+
</Route>
19+
<Route path={path.home} element={<Home/>} />
20+
</Routes>
21+
</div>
22+
</>
23+
)
24+
}
25+
26+
export default App
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)