This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
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.
refactor: update ui for ui complain pages
- Loading branch information
1 parent
02aaabc
commit 7efec77
Showing
15 changed files
with
204 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Redirect, Route } from "react-router-dom"; | ||
import { IonRouterOutlet, IonTabs, IonTabBar, IonTabButton, IonLabel } from "@ionic/react"; | ||
import { Icons } from "@trashtrack/ui"; | ||
|
||
import ComplainDashboard from "../pages/complain/dashboard"; | ||
import ComplainReportHistory from "../pages/complain/form/report-history"; | ||
import ComplainFormTempatSampah from "../pages/complain/form/tempat-sampah"; | ||
import ComplainFormLaporan from "../pages/complain/form/laporan"; | ||
|
||
const ComplainTabs: React.FC = () => { | ||
return ( | ||
<IonTabs> | ||
<IonRouterOutlet animated={false} mode="ios"> | ||
<Route path="/complain/tabs/dashboard" render={() => <ComplainDashboard />} exact={true} /> | ||
<Route | ||
path="/complain/tabs/form/report-history" | ||
render={() => <ComplainReportHistory />} | ||
exact={true} | ||
/> | ||
<Route | ||
path="/complain/tabs/form/tempat-sampah" | ||
render={() => <ComplainFormTempatSampah />} | ||
exact={true} | ||
/> | ||
<Route | ||
path="/complain/tabs/form/laporan/:tempat_sampah_id" | ||
render={() => <ComplainFormLaporan />} | ||
exact={true} | ||
/> | ||
|
||
<Route path="/complain/tabs" render={() => <Redirect to="/complain/tabs/dashboard" />} exact={true} /> | ||
</IonRouterOutlet> | ||
<IonTabBar slot="bottom" mode="ios" translucent className="pb-4"> | ||
<IonTabButton tab="dashboardTabsComplain" href="/complain/tabs/dashboard"> | ||
<Icons.dashboardLaporan strokeWidth={1} className="pt-2 w-[32px] h-[30px]" /> | ||
<IonLabel className="pt-2 pb-2">Dashboard</IonLabel> | ||
</IonTabButton> | ||
<IonTabButton tab="laporanTabs" href="/complain/tabs/form/tempat-sampah"> | ||
<Icons.tambahakanLaporan strokeWidth={1} className="pt-2 w-[32px] h-[30px]" /> | ||
<IonLabel className="pt-2 pb-2">Laporkan</IonLabel> | ||
</IonTabButton> | ||
<IonTabButton tab="riwayatTabs" href="/complain/tabs/form/report-history"> | ||
<Icons.riwayatLaporan strokeWidth={1} className="pt-2 w-[32px] h-[30px]" /> | ||
<IonLabel className="pt-2 pb-2">Riwayat</IonLabel> | ||
</IonTabButton> | ||
</IonTabBar> | ||
</IonTabs> | ||
); | ||
}; | ||
|
||
export default ComplainTabs; |
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
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
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
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
Oops, something went wrong.