1 parent
82510b8780
commit
abcf6e3880
3 files changed
+2
-3
No files matched your search
@@ -21,6 +21,7 @@
|
|||||||
"@radix-ui/react-label": "^2.1.0",
|
"@radix-ui/react-label": "^2.1.0",
|
||||||
"@radix-ui/react-popover": "^1.1.1",
|
"@radix-ui/react-popover": "^1.1.1",
|
||||||
"@radix-ui/react-scroll-area": "^1.1.0",
|
"@radix-ui/react-scroll-area": "^1.1.0",
|
||||||
|
"@radix-ui/react-select": "^2.1.1",
|
||||||
"@radix-ui/react-slot": "^1.1.0",
|
"@radix-ui/react-slot": "^1.1.0",
|
||||||
"@radix-ui/react-switch": "^1.1.0",
|
"@radix-ui/react-switch": "^1.1.0",
|
||||||
"@radix-ui/react-toast": "^1.2.1",
|
"@radix-ui/react-toast": "^1.2.1",
|
||||||
|
|||||||
@@ -10,9 +10,7 @@ interface IAPIPerson extends Omit<IPerson, 'birthDate' | 'updatedAt'> {
|
|||||||
export const cleanUpPerson = (person: IAPIPerson, skipMock?: boolean): IPerson => {
|
export const cleanUpPerson = (person: IAPIPerson, skipMock?: boolean): IPerson => {
|
||||||
return {
|
return {
|
||||||
...person,
|
...person,
|
||||||
// thumbnailPath: PERSON_THUBNAIL_PATH(person.id),
|
thumbnailPath: PERSON_THUBNAIL_PATH(person.id),
|
||||||
thumbnailPath: person.name === "Varun Raj" || skipMock === true ? PERSON_THUBNAIL_PATH(person.id) : "https://i.pravatar.cc/150?u=" + person.id,
|
|
||||||
|
|
||||||
birthDate: person.birthDate ? new Date(person.birthDate) : null,
|
birthDate: person.birthDate ? new Date(person.birthDate) : null,
|
||||||
updatedAt: new Date(person.updatedAt),
|
updatedAt: new Date(person.updatedAt),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user