Fixed add customer page

This commit is contained in:
2026-07-18 18:15:16 -05:00
parent 92afaafe7b
commit d15701a50b
2 changed files with 5 additions and 5 deletions
@@ -1,4 +1,4 @@
import {Button, Group, TextInput, NumberInput, Container, Title, Flex} from '@mantine/core';
import {Button, Group, TextInput, Container, Title, Flex} from '@mantine/core';
import {useForm} from '@mantine/form';
import {useMutation} from "@tanstack/react-query";
import {NewCustomer} from "./types.ts";
@@ -89,11 +89,11 @@ function AddCustomer() {
placeholder="Name" {...newCustomerForm.getInputProps('name')}/>
<TextInput size="md" key={newCustomerForm.key('company')} label="Company"
placeholder="Company"{...newCustomerForm.getInputProps('company')}/>
<NumberInput size="md" key={newCustomerForm.key('email')} label="Email"
<TextInput withAsterisk size="md" key={newCustomerForm.key('email')} label="Email"
placeholder="Email" {...newCustomerForm.getInputProps('email')}/>
<NumberInput size="md" key={newCustomerForm.key('phone')} label="Phone"
<TextInput size="md" key={newCustomerForm.key('phone')} label="Phone"
placeholder="Phone" {...newCustomerForm.getInputProps('phone')}/>
<NumberInput size="md" key={newCustomerForm.key('address')} label="Address"
<TextInput size="md" key={newCustomerForm.key('address')} label="Address"
placeholder="Address" {...newCustomerForm.getInputProps('address')}/>
<Group justify="flex-end" mt="md">
@@ -26,7 +26,7 @@ function CustomerList() {
<p>
ARFF ARFF BARK BARK
</p>
<NavLink to={'/customers/AddCustomers'}><BarkButton>Add Customer</BarkButton></NavLink>
<NavLink to={'/customers/AddCustomer'}><BarkButton>Add Customer</BarkButton></NavLink>
</Flex>
<Table striped>