Commit 39855230 by Arjun Jhukal

updated the new fixes

parent 92ba34b9
...@@ -458,4 +458,8 @@ input[type=number]::-webkit-outer-spin-button { ...@@ -458,4 +458,8 @@ input[type=number]::-webkit-outer-spin-button {
input[type=number] { input[type=number] {
-moz-appearance: textfield; -moz-appearance: textfield;
}
.MuiPickersSectionList-root {
padding: 12px 16px !important;
} }
\ No newline at end of file
...@@ -170,22 +170,6 @@ export default function VerifyKYCPage() { ...@@ -170,22 +170,6 @@ export default function VerifyKYCPage() {
<span className="error">{formik.touched.last_name && formik.errors.last_name}</span> <span className="error">{formik.touched.last_name && formik.errors.last_name}</span>
</div> </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 */} {/* User ID */}
<div className="input__field"> <div className="input__field">
<InputLabel htmlFor="user_id">User ID<span className="text-red-500">*</span></InputLabel> <InputLabel htmlFor="user_id">User ID<span className="text-red-500">*</span></InputLabel>
...@@ -217,6 +201,22 @@ export default function VerifyKYCPage() { ...@@ -217,6 +201,22 @@ export default function VerifyKYCPage() {
/> />
<span className="error">{formik.touched.photo_id && formik.errors.photo_id}</span> <span className="error">{formik.touched.photo_id && formik.errors.photo_id}</span>
</div> </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> </div>
<Stack mt={4} direction="row" justifyContent="flex-end"> <Stack mt={4} direction="row" justifyContent="flex-end">
......
...@@ -11,16 +11,17 @@ export const authApi = createApi({ ...@@ -11,16 +11,17 @@ export const authApi = createApi({
query: ({ email, query: ({ email,
username, username,
password, password,
password_confirmation }) => ({ password_confirmation, first_name, middle_name, last_name, phone, photoid_number, dob, city, pob }) => ({
url: `/api/auth/register`, url: `/api/auth/register`,
method: "POST", method: "POST",
body: { body: {
email, email,
username, username,
password, password,
password_confirmation password_confirmation, first_name, middle_name, last_name, phone, photoid_number, dob, city, pob
}, },
}) }),
}), }),
login: builder.mutation<LoginResponse, LoginProps>({ login: builder.mutation<LoginResponse, LoginProps>({
query: ({ email, password }) => ({ query: ({ email, password }) => ({
......
...@@ -6,16 +6,16 @@ export type LoginProps = { ...@@ -6,16 +6,16 @@ export type LoginProps = {
} }
export interface User { export interface User {
id: string, id: string;
name: string, name: string;
email: string, email: string;
first_name: string, first_name: string;
last_name: string, last_name: string;
profile_image: string, profile_image: string;
wallet_address: string, wallet_address: string;
address: string, address: string;
city: string city: string
role: RoleProps, role: RoleProps;
} }
export interface LoginResponse { export interface LoginResponse {
...@@ -30,4 +30,12 @@ export interface LoginResponse { ...@@ -30,4 +30,12 @@ export interface LoginResponse {
export interface RegisterProps extends LoginProps { export interface RegisterProps extends LoginProps {
username: string; username: string;
password_confirmation: 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