Skip to content

Commit 4203ac2

Browse files
committed
fix new profile
1 parent d2d2786 commit 4203ac2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/>
1919

2020
<link rel="stylesheet" href="/style.css" />
21-
<title>Vasi</title>
21+
<title>ravescript - make music with code</title>
2222
</head>
2323
<body>
2424
<span style="font-family: 'IBM Plex Mono'"></span>

src/pages/App.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { icon } from '~/lib/icon.ts'
99
import { dspEditorUi } from '~/src/comp/DspEditorUi.tsx'
1010
import { Toast } from '~/src/comp/Toast.tsx'
1111
import { ICON_24, ICON_32, ICON_48 } from '~/src/constants.ts'
12+
import { CreateProfile } from '~/src/pages/CreateProfile.tsx'
1213
import { getDspControls } from '~/src/pages/DspControls.tsx'
1314
import { logoutUser, maybeLogin } from '~/src/rpc/auth.ts'
1415
import { 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

Comments
 (0)