diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-30 18:41:26 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-30 18:41:26 +0530 |
commit | 4da8234113fc976311fb494c61a7ed3a9237b5f6 (patch) | |
tree | 2267a589937b60029cd52b5e98ff8641c37cb8ae /src/app/manage | |
parent | 4f49ef89df3e9ca00a068a3fc796646b26245cf0 (diff) |
made S. No smaller in customers list
Diffstat (limited to 'src/app/manage')
-rw-r--r-- | src/app/manage/customer/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/app/manage/customer/mod.rs b/src/app/manage/customer/mod.rs index 2f5d505..247209e 100644 --- a/src/app/manage/customer/mod.rs +++ b/src/app/manage/customer/mod.rs @@ -30,8 +30,7 @@ use crate::components::table::{ #[function_component(ManageCustomerPage)] pub fn manage_customer() -> Html { let mut customers = Vec::new(); - - let mut c1: customer::Customer = customer::Customer::new(); + let mut c1 = customer::Customer::new(); c1.id = 1; c1.name = "MikunoNaka".to_string(); c1.gstin = "AKSK821KASJ123LJF".to_string(); @@ -52,11 +51,11 @@ pub fn manage_customer() -> Html { c1s1.country = "India".to_string(); c1.add_shipping_address(c1s1); - for _ in 0..5000 { + for _ in 0..100 { customers.push(c1.clone()); } - let table_template = String::from("1fr 3fr 2fr"); + let table_template = String::from("5rem 3fr 2fr"); let customers_table: Html = customers .iter() |