From 4da8234113fc976311fb494c61a7ed3a9237b5f6 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 30 Aug 2023 18:41:26 +0530 Subject: made S. No smaller in customers list --- src/app/manage/customer/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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() -- cgit v1.2.3