Skip to content

Commit

Permalink
Merge pull request #112 from P4-Games/fix/paths-icp
Browse files Browse the repository at this point in the history
merge fix/paths-icp into develop
  • Loading branch information
dappsar authored Sep 29, 2024
2 parents 7ef897e + 2f4c4d7 commit 143d209
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/config-global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const NFT_IMAGE_REPOSITORY = (
// ----------------------------------------------------------------------

// internal
export const PATH_AFTER_LOGIN = fromICP ? 'https://chatterpay.net/dashboard' : paths.dashboard.root
export const DOMAIN_TO_USE_WITH_ICP = fromICP ? 'https://chatterpay.net' : ''
export const PATH_AFTER_LOGIN = `${DOMAIN_TO_USE_WITH_ICP}$/dashboard`
export const BOT_WAPP_URL =
'https://api.whatsapp.com/send/?phone=5491164629653&text=MESSAGE&type=phone_number&app_absent=0'

Expand Down
7 changes: 5 additions & 2 deletions src/layouts/common/login-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { paths } from 'src/routes/paths'
import { RouterLink } from 'src/routes/components'

import { useTranslate } from 'src/locales'
import { PATH_AFTER_LOGIN } from 'src/config-global'

// ----------------------------------------------------------------------

Expand All @@ -26,7 +25,11 @@ export default function LoginButton({ sx }: Props) {
>
{t('home.header.sign-up')}
</Button>
<Button component={RouterLink} href={PATH_AFTER_LOGIN} variant='soft' sx={{ mr: 1, ...sx }}>
<Button
component={RouterLink}
href={paths.auth.jwt.login}
variant='soft'
sx={{ mr: 1, ...sx }}>
{t('home.header.sign-in')}
</Button>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/main/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function Header() {
{
title: t('home.header.sign-in'),
icon: <Iconify icon='solar:wallet-bold-duotone' />,
path: PATH_AFTER_LOGIN
path: paths.auth.jwt.login
}
]

Expand Down

0 comments on commit 143d209

Please sign in to comment.