feat(WEB-162): final design for my profile page

This commit is contained in:
Simon Emanuelsson
2024-06-07 10:36:23 +02:00
committed by Christel Westerberg
parent a7b04df7b6
commit 5f3e417593
96 changed files with 802 additions and 494 deletions
@@ -41,11 +41,10 @@
border: var(--select-border);
border-radius: var(--Corner-radius-Small);
overflow: auto;
padding: var(--Spacing-x2) var(--Spacing-x2) var(--Spacing-x2)
var(--Spacing-x1);
padding: var(--Spacing-x2) var(--Spacing-x2) var(--Spacing-x2) var(--Spacing-x1);
width: var(--select-width);
}
.listBoxItem {
padding: 0 var(--Spacing-x1);
}
}
@@ -1,4 +1,4 @@
.message {
color: var(--Scandic-Red-60);
margin: var(--Spacing-x-half) 0 0;
}
}
@@ -5,4 +5,4 @@
height: 40px;
padding: var(--Spacing-x1) var(--Spacing-x2);
width: min(280px, 100%);
}
}
@@ -3,8 +3,12 @@ import "react-international-phone/style.css"
import { useCallback, useEffect, useRef } from "react"
import { useController, useFormContext, useWatch } from "react-hook-form"
import { defaultCountries, getCountry } from "react-international-phone"
import { PhoneInput, type PhoneInputRefType } from "react-international-phone"
import {
defaultCountries,
getCountry,
PhoneInput,
type PhoneInputRefType,
} from "react-international-phone"
import ErrorMessage from "@/components/TempDesignSystem/Form/ErrorMessage"