generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapted the routing so that dynamic paths will be handled.
- Loading branch information
1 parent
75b5316
commit d691816
Showing
4 changed files
with
109 additions
and
5 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
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
15 changes: 15 additions & 0 deletions
15
frontend/src/routes/dynamicPaths/ProductSolutionsServicesComponent.js
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,15 @@ | ||
import React from 'react'; | ||
import { useParams } from 'react-router-dom'; | ||
|
||
export default function ProductSolutionsServicesComponent() { | ||
const { type } = useParams(); | ||
|
||
return ( | ||
<> | ||
<h2>At this location the component which shows all the products / models will be implemented</h2> | ||
{type === 'products' && <div>This is where all the products of the selected category could be shown.</div>} | ||
{type === 'solutions' && <div>This is where all the solutions of the selected category could be shown.</div>} | ||
{type === 'services' && <div>This is where all the services of the selected category could be shown.</div>} | ||
</> | ||
); | ||
} |