···11+/**
22+ * GENERATED CODE - DO NOT MODIFY
33+ */
44+import { validate as _validate } from '../../../lexicons'
55+import { is$typed as _is$typed } from '../../../util'
66+77+const is$typed = _is$typed,
88+ validate = _validate
99+const id = 'social.drydown.settings'
1010+1111+export interface Main {
1212+ $type: 'social.drydown.settings'
1313+ /** How the user prefers to be noticed (1=skin scent, 5=bold presence) */
1414+ presenceStyle?: number
1515+ /** How important all-day longevity is (1=not important, 5=essential) */
1616+ longevityPriority?: number
1717+ /** Preference for fragrance complexity (1=simple, 5=intricate) */
1818+ complexityPreference?: number
1919+ /** How user evaluates fragrances (1=instinct, 5=analytical) */
2020+ scoringApproach?: number
2121+ /** When viewing others' reviews: show their score or recalculate with your preferences */
2222+ scoreLens?: 'theirs' | 'mine' | (string & {})
2323+ /** Timestamp when settings were first created */
2424+ createdAt: string
2525+ /** Timestamp when settings were last updated */
2626+ updatedAt?: string
2727+ [k: string]: unknown
2828+}
2929+3030+const hashMain = 'main'
3131+3232+export function isMain<V>(v: V) {
3333+ return is$typed(v, id, hashMain)
3434+}
3535+3636+export function validateMain<V>(v: V) {
3737+ return validate<Main & V>(v, id, hashMain, true)
3838+}
3939+4040+export {
4141+ type Main as Record,
4242+ isMain as isRecord,
4343+ validateMain as validateRecord,
4444+}
+7-6
src/components/EditHousePage.tsx
···11import { useState, useEffect } from 'preact/hooks'
22-import { useLocation, Link } from 'wouter'
22+import { useLocation } from 'wouter'
33+import type { OAuthSession } from '@atproto/oauth-client-browser'
34import { AtpBaseClient } from '../client/index'
45import { AppDisclaimer } from './AppDisclaimer'
66+import { Header } from './Header'
57import { Footer } from './Footer'
66-import type { OAuthSession } from '@atproto/oauth-client-browser'
78import { deleteHouse } from '../api/houses'
89import { bulkUpdateFragranceHouse } from '../api/fragrances'
910import { Combobox } from './Combobox'
···1516 handle: string
1617 rkey: string
1718 session: OAuthSession | null
1919+ userProfile?: { displayName?: string; handle: string } | null
2020+ onLogout?: () => void
1821}
19222020-export function EditHousePage({ handle, rkey, session }: EditHousePageProps) {
2323+export function EditHousePage({ handle, rkey, session, userProfile, onLogout }: EditHousePageProps) {
2124 const [, setLocation] = useLocation()
2225 const [houseName, setHouseName] = useState('')
2326 const [isLoading, setIsLoading] = useState(true)
···216219217220 return (
218221 <div className="page-container">
219219- <nav className="main-nav" style={{ marginBottom: '2rem' }}>
220220- <Link href="/" className="nav-logo">Drydown</Link>
221221- </nav>
222222+ <Header session={session} userProfile={userProfile} onLogout={onLogout} />
222223223224 <h2>Edit House</h2>
224225