forked from CodeForPoznan/alinka-electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add router to sidebar (CodeForPoznan#70) (CodeForPoznan#137)
* Add simple routing structure (CodeForPoznan#70) * Fix displaying icon on Dashboard * Change routes for rending single component (CodeForPoznan#70) * Move ProgressBar into Form (CodeForPoznan#70) * Create dump components to render another page (CodeForPoznan#70) * Change Navigation with using routes and add its style (CodeForPoznan#70) * Change routes object into array - CR amendments (CodeForPoznan#70)
- Loading branch information
1 parent
93bb4f8
commit 1d667b9
Showing
15 changed files
with
298 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from "react"; | ||
|
||
const Children = () => <div>Szukajka dzieci</div>; | ||
|
||
export default Children; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
import React from "react"; | ||
import { Route, withRouter, Switch } from "react-router-dom"; | ||
import styles from "./Dashboard.scss"; | ||
import ProgressBar from "./ProgressBar/ProgressBar"; | ||
import FormSteps from "./Form/FormSteps"; | ||
import routes from "../../routing/routes"; | ||
|
||
const Dashboard = () => { | ||
return ( | ||
<div className={styles.Dashboard}> | ||
<div className={styles.Wrapper}> | ||
<ProgressBar /> | ||
<FormSteps /> | ||
<Switch> | ||
{routes.map((route, index) => ( | ||
<Route | ||
key={index} | ||
index={route.id} | ||
path={route.path} | ||
render={() => route.component} | ||
exact={route.exact} | ||
/> | ||
))} | ||
</Switch> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Dashboard; | ||
export default withRouter(Dashboard); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,3 @@ | |
.Underline { | ||
border-bottom: 3px solid $orange; | ||
} | ||
|
||
.Icon { | ||
width: 76px; | ||
height: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from "react"; | ||
|
||
const Home = () => <div>Strona startowa :) </div>; | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from "react"; | ||
|
||
const Statements = () => <div>Szukajka orzeczeń</div>; | ||
|
||
export default Statements; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.