Skip to content

Commit

Permalink
Create AppContainer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 6, 2024
1 parent c5039ed commit ff72b3b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions blockchain_integration/PiSure/client/containers/AppContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import InsuranceForm from '../components/InsuranceForm';
import PolicyList from '../components/PolicyList';

const AppContainer = () => {
return (
<BrowserRouter>
<Switch>
<Route path="/" exact component={InsuranceForm} />
<Route path="/policies" component={PolicyList} />
</Switch>
</BrowserRouter>
);
};

export default AppContainer;

0 comments on commit ff72b3b

Please sign in to comment.