Commit 39855230 by Arjun Jhukal

updated the new fixes

parent 92ba34b9
......@@ -459,3 +459,7 @@ input[type=number]::-webkit-outer-spin-button {
input[type=number] {
-moz-appearance: textfield;
}
.MuiPickersSectionList-root {
padding: 12px 16px !important;
}
\ No newline at end of file
......@@ -170,22 +170,6 @@ export default function VerifyKYCPage() {
<span className="error">{formik.touched.last_name && formik.errors.last_name}</span>
</div>
{/* Address */}
<div className="input__field">
<InputLabel htmlFor="address">Address</InputLabel>
<OutlinedInput
fullWidth
id="address"
name="address"
placeholder="Enter address"
value={formik.values.address}
onChange={formik.handleChange}
onBlur={formik.handleBlur}
sx={formFieldSx}
/>
<span className="error">{formik.touched.address && formik.errors.address}</span>
</div>
{/* User ID */}
<div className="input__field">
<InputLabel htmlFor="user_id">User ID<span className="text-red-500">*</span></InputLabel>
......@@ -217,6 +201,22 @@ export default function VerifyKYCPage() {
/>
<span className="error">{formik.touched.photo_id && formik.errors.photo_id}</span>
</div>
{/* Address */}
<div className="input__field">
<InputLabel htmlFor="address">Address</InputLabel>
<OutlinedInput
fullWidth
id="address"
name="address"
placeholder="Enter address"
value={formik.values.address}
onChange={formik.handleChange}
onBlur={formik.handleBlur}
sx={formFieldSx}
/>
<span className="error">{formik.touched.address && formik.errors.address}</span>
</div>
</div>
<Stack mt={4} direction="row" justifyContent="flex-end">
......
......@@ -11,16 +11,17 @@ export const authApi = createApi({
query: ({ email,
username,
password,
password_confirmation }) => ({
password_confirmation, first_name, middle_name, last_name, phone, photoid_number, dob, city, pob }) => ({
url: `/api/auth/register`,
method: "POST",
body: {
email,
username,
password,
password_confirmation
password_confirmation, first_name, middle_name, last_name, phone, photoid_number, dob, city, pob
},
})
}),
}),
login: builder.mutation<LoginResponse, LoginProps>({
query: ({ email, password }) => ({
......
......@@ -6,16 +6,16 @@ export type LoginProps = {
}
export interface User {
id: string,
name: string,
email: string,
first_name: string,
last_name: string,
profile_image: string,
wallet_address: string,
address: string,
id: string;
name: string;
email: string;
first_name: string;
last_name: string;
profile_image: string;
wallet_address: string;
address: string;
city: string
role: RoleProps,
role: RoleProps;
}
export interface LoginResponse {
......@@ -30,4 +30,12 @@ export interface LoginResponse {
export interface RegisterProps extends LoginProps {
username: string;
password_confirmation: string;
first_name: string;
middle_name: string;
last_name: string;
phone: string;
photoid_number: string;
dob: string;
city: string;
pob: string;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment