Compare commits

..

3 Commits

Author SHA1 Message Date
SD a39f53c57d ::Merge branch 'develop' into stripe 2024-10-17 13:24:29 +04:00
SD 4ac2740942 fix: fix sessions path 2024-10-17 13:22:22 +04:00
SD be7efc0d32 0.0.4 2024-10-16 21:48:56 +04:00
4 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "bbuddy-ui",
"version": "0.0.3",
"version": "0.0.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "bbuddy-ui",
"version": "0.0.3",
"version": "0.0.4",
"dependencies": {
"@ant-design/cssinjs": "^1.18.1",
"@ant-design/icons": "^5.2.6",

View File

@ -1,6 +1,6 @@
{
"name": "bbuddy-ui",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"scripts": {
"dev": "next dev -p 4200",

View File

@ -8,5 +8,5 @@ import { SessionType } from '../../../../../types/sessions';
export default function SessionsMainPage() {
const [token] = useLocalStorage(AUTH_TOKEN_KEY, '');
return token ? redirect(SessionType.UPCOMING) : null;
return token ? redirect(`sessions/${SessionType.UPCOMING}`) : null;
};

View File

@ -38,7 +38,7 @@ function HeaderAuthLinks ({
return token
? (
<li>
<Link href={'/account/sessions/upcoming' as any} className={pathname === 'account' ? 'active' : ''}>
<Link href={'/account/sessions' as any} className={pathname === 'account' ? 'active' : ''}>
{i18nText('account', locale)}
</Link>
</li>