@@ -9,6 +9,7 @@ import { icon } from '~/lib/icon.ts'
99import { dspEditorUi } from '~/src/comp/DspEditorUi.tsx'
1010import { Toast } from '~/src/comp/Toast.tsx'
1111import { ICON_24 , ICON_32 , ICON_48 } from '~/src/constants.ts'
12+ import { CreateProfile } from '~/src/pages/CreateProfile.tsx'
1213import { getDspControls } from '~/src/pages/DspControls.tsx'
1314import { logoutUser , maybeLogin } from '~/src/rpc/auth.ts'
1415import { getProfile , listProfilesForNick , makeDefaultProfile } from '~/src/rpc/profiles.ts'
@@ -259,6 +260,7 @@ export function App() {
259260 < DropDown right handle = { icon ( UserCircle , ICON_24 ) } items = { ( ) => [
260261 // [<Link class="px-2 py-1 hover:no-underline flex items-center justify-end" href="/settings">Settings</Link>, () => { }],
261262 [ state . user ? < Link class = "px-2 py-1 hover:no-underline flex items-center justify-end" onclick = { logoutUser } > Logout</ Link > : < div /> , ( ) => { } ] ,
263+ [ < Link class = "px-2 py-1 hover:no-underline flex items-center justify-end" href = "/new-profile" > New profile</ Link > , ( ) => { } ] ,
262264 ...state . profiles
263265 . filter ( p => p . nick !== state . user ?. defaultProfile )
264266 . map ( p =>
@@ -296,6 +298,9 @@ export function App() {
296298 const { pathname } = state
297299 $ ( )
298300 switch ( pathname ) {
301+ case '/new-profile' :
302+ return < CreateProfile />
303+
299304 default :
300305 return < Home />
301306 }
0 commit comments