File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
packages/property-tree/src Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,8 @@ import {
77import { useIsMobile } from '../hooks/useMobile'
88import { components } from '@/services/api/core/generated/api-types'
99
10- type ResidenceDetails = components [ 'schemas' ] [ 'ResidenceDetails' ]
11-
1210interface ResidenceBasicInfoProps {
13- residence : ResidenceDetails
11+ residence : components [ 'schemas' ] [ ' ResidenceDetails' ]
1412}
1513
1614export const ResidenceBasicInfo = ( { residence } : ResidenceBasicInfoProps ) => {
@@ -59,7 +57,11 @@ export const ResidenceBasicInfo = ({ residence }: ResidenceBasicInfoProps) => {
5957 < div >
6058 < p className = "text-sm text-muted-foreground" > Status</ p >
6159 < p className = "font-medium" >
62- { residence . deleted ? 'Borttagen' : 'Aktiv' }
60+ { residence . status === 'LEASED'
61+ ? 'Uthyrd'
62+ : residence . status === 'VACANT'
63+ ? 'Vakant'
64+ : 'N/A' }
6365 </ p >
6466 </ div >
6567 < div >
Original file line number Diff line number Diff line change @@ -2266,6 +2266,8 @@ export interface components {
22662266 id : string ;
22672267 code : string ;
22682268 name : string | null ;
2269+ /** @enum {string|null} */
2270+ status : "VACANT" | "LEASED" | null ;
22692271 location : string | null ;
22702272 accessibility : {
22712273 wheelchairAccessible : boolean ;
Original file line number Diff line number Diff line change 1- import { Residence } from '../types'
21import { GET } from './core/base-api'
32import { components } from './core/generated/api-types'
43
4+ type Residence = components [ 'schemas' ] [ 'Residence' ]
55type ResidenceDetails = components [ 'schemas' ] [ 'ResidenceDetails' ]
66
77export const residenceService = {
You can’t perform that action at this time.
0 commit comments