gitignore Made

main
Pedram Keshavarzi 3 years ago
parent 2e19765d07
commit 6c40eff910
  1. 24
      .gitignore
  2. 18
      src/App.js

24
.gitignore vendored

@ -0,0 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
node_modules
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

@ -616,7 +616,7 @@ function App() {
} }
} }
} }
const [LOGIN,setLOGIN]=useState(true); const [LOGIN,setLOGIN]=useState(false);
const activeLogin=()=>{ const activeLogin=()=>{
setLOGIN(true); setLOGIN(true);
} }
@ -646,13 +646,8 @@ function App() {
<Route <Route
path="/" path="/"
element={ element={
<Dashboard
ActiveUserFullInfo={ActiveUserFullInfo} <Login activeLogin={activeLogin} />}
UserFullInfoData={UserFullInfoData}
showUserFullInfo={showUserFullInfo}
hideUserFullInfo={hideUserFullInfo}
/>
}
/> />
<Route <Route
path="/buy-packages/:id" path="/buy-packages/:id"
@ -667,7 +662,12 @@ function App() {
/> />
<Route path="/accounting" element={<Accounting />} /> <Route path="/accounting" element={<Accounting />} />
<Route path="/messages" element={<Messages />} /> <Route path="/messages" element={<Messages />} />
<Route path="/login" element={<Login activeLogin={activeLogin} />} /> <Route path="/dashboard" element={ <Dashboard
ActiveUserFullInfo={ActiveUserFullInfo}
UserFullInfoData={UserFullInfoData}
showUserFullInfo={showUserFullInfo}
hideUserFullInfo={hideUserFullInfo}
/>} />
</Routes> </Routes>
</div> </div>
</BrowserRouter> </BrowserRouter>

Loading…
Cancel
Save