aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app/manage/customer/mod.rs7
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()