diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-30 10:45:52 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-30 10:45:52 +0530 |
commit | cb86b7f9e4dcd1c1331025d70b272e4de33f164a (patch) | |
tree | 34bc2f24c4df690eb8801ddf9059c355bc8e98d6 /src/app | |
parent | cdd1159b2e78c4a76fde0dd4a45374dddfe00f1b (diff) |
added about page
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/mod.rs | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index 671aac6..1f37a9f 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -45,8 +45,11 @@ pub enum Route { ViewInvoices, #[at("/invoice/one")] ViewInvoice, + #[at("/settings")] Settings, + #[at("/about")] + About, #[not_found] #[at("/404")] @@ -58,15 +61,17 @@ pub fn switch(routes: Route) -> Html { Route::Home => html! {<home::HomePage />}, Route::ManageMenu => html! {<manage::ManageMenuPage />}, - Route::ManageClients => html! {<h1>{ "Edit Clients" }</h1>}, - Route::ManageBrands => html! {<h1>{ "Edit Brands" }</h1>}, - Route::ManageItems => html! {<h1>{ "Edit Items" }</h1>}, - Route::ManageInvoices => html! {<h1>{ "Edit Invoices" }</h1>}, + Route::ManageClients => html! {<h1>{ "Edit Clients (To Be Added)" }</h1>}, + Route::ManageBrands => html! {<h1>{ "Edit Brands (To Be Added)" }</h1>}, + Route::ManageItems => html! {<h1>{ "Edit Items (To Be Added)" }</h1>}, + Route::ManageInvoices => html! {<h1>{ "Edit Invoices (To Be Added)" }</h1>}, + + Route::NewInvoice => html! {<h1>{ "Create New Invoice (To Be Added)" }</h1>}, + Route::ViewInvoices => html! {<h1>{ "View All Invoices (To Be Added)" }</h1>}, + Route::ViewInvoice => html! {<h1>{ "View a Single Invoice (To Be Added)" }</h1>}, - Route::NewInvoice => html! {<h1>{ "Create New Invoice" }</h1>}, - Route::ViewInvoices => html! {<h1>{ "View All Invoices" }</h1>}, - Route::ViewInvoice => html! {<h1>{ "View a Single Invoice" }</h1>}, - Route::Settings => html! {<h1>{ "Settings Page" }</h1>}, + Route::Settings => html! {<h1>{ "Settings Page (To Be Added)" }</h1>}, + Route::About => html! {<h1>{ "About Page (To Be Added)" }</h1>}, Route::NotFound => html! {<h1>{"404 Page Not Found"}</h1>}, } |