updated the add cusstomer fileds
This commit is contained in:
parent
75b5bc7c0e
commit
8ce42aeb2d
@ -14,7 +14,7 @@ import { cibGmail } from "@coreui/icons";
|
||||
import { createRoot } from "react-dom/client";
|
||||
|
||||
const setupAxios = () => {
|
||||
//axios.defaults.baseURL = "http://localhost:5000";
|
||||
// axios.defaults.baseURL = "http://localhost:5000";
|
||||
axios.defaults.baseURL = "https://api.smellika.com";
|
||||
|
||||
axios.defaults.headers = {
|
||||
|
@ -42,6 +42,8 @@ const AddCustomer = () => {
|
||||
state: "",
|
||||
postalCode: "",
|
||||
country: "",
|
||||
company_name: "",
|
||||
gst_number: Number,
|
||||
});
|
||||
|
||||
// console.log(data);
|
||||
@ -373,6 +375,50 @@ const AddCustomer = () => {
|
||||
/>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={6}>
|
||||
<FormControl variant="outlined" fullWidth>
|
||||
<FormHelperText
|
||||
id="outlined-weight-helper-text"
|
||||
sx={styles.formStyle}
|
||||
>
|
||||
Company Name
|
||||
</FormHelperText>
|
||||
<OutlinedInput
|
||||
size="small"
|
||||
id="outlined-adornment-weight"
|
||||
placeholder="Company name"
|
||||
aria-describedby="outlined-weight-helper-text"
|
||||
name="company_name"
|
||||
type="text"
|
||||
onChange={(e) => handleChange(e)}
|
||||
|
||||
// value={accountDetails.firstname}
|
||||
// onChange={handerInputChanges}
|
||||
/>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={6}>
|
||||
<FormControl variant="outlined" fullWidth>
|
||||
<FormHelperText
|
||||
id="outlined-weight-helper-text"
|
||||
sx={styles.formStyle}
|
||||
>
|
||||
GST Number
|
||||
</FormHelperText>
|
||||
<OutlinedInput
|
||||
size="small"
|
||||
id="outlined-adornment-weight"
|
||||
placeholder="GST Number"
|
||||
aria-describedby="outlined-weight-helper-text"
|
||||
name="gst_number"
|
||||
type="text"
|
||||
onChange={(e) => handleChange(e)}
|
||||
|
||||
// value={accountDetails.firstname}
|
||||
// onChange={handerInputChanges}
|
||||
/>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}>
|
||||
<Button
|
||||
variant="contained"
|
||||
|
@ -217,6 +217,10 @@ const SingleUserAllDetails = () => {
|
||||
<td style={{ maxWidth: "400px" }}>
|
||||
<strong>
|
||||
{address?.first_Name} {address?.last_name},
|
||||
{address.company_name
|
||||
? `${address.company_name},`
|
||||
: ""}
|
||||
{address.gst_number ? `${address.gst_number},` : ""}
|
||||
{address?.phone_Number},{address?.street},
|
||||
{address?.city},{address?.state},{address?.country},
|
||||
{address?.postalCode}
|
||||
|
Loading…
Reference in New Issue
Block a user