chore: added changes from main

This commit is contained in:
Yury 2024-05-24 16:05:52 +03:00
parent 5d17ae8d4a
commit 5a8c6c8183

View File

@ -13,6 +13,7 @@ export const appPrivateRoutes = {
create: '/create', create: '/create',
sign: '/sign', sign: '/sign',
verify: '/verify', verify: '/verify',
profileSettings: '/settings/profile/:npub',
relays: '/relays' relays: '/relays'
} }
@ -26,6 +27,9 @@ export const appPublicRoutes = {
export const getProfileRoute = (hexKey: string) => export const getProfileRoute = (hexKey: string) =>
appPublicRoutes.profile.replace(':npub', hexToNpub(hexKey)) appPublicRoutes.profile.replace(':npub', hexToNpub(hexKey))
export const getProfileSettingsRoute = (hexKey: string) =>
appPrivateRoutes.profileSettings.replace(':npub', hexToNpub(hexKey))
export const publicRoutes = [ export const publicRoutes = [
{ {
path: appPublicRoutes.landingPage, path: appPublicRoutes.landingPage,
@ -60,6 +64,10 @@ export const privateRoutes = [
path: appPrivateRoutes.verify, path: appPrivateRoutes.verify,
element: <VerifyPage /> element: <VerifyPage />
}, },
{
path: appPrivateRoutes.profileSettings,
element: <ProfilePage />
},
{ {
path: appPrivateRoutes.relays, path: appPrivateRoutes.relays,
element: <RelaysPage /> element: <RelaysPage />