Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ThemeContext } from '@context'
import '@styles/index.scss'
import { TonConnectUIProvider } from '@tonconnect/ui-react'
import { checkIsMobile, checkStartAppParams } from '@utils'

Check warning on line 4 in frontend/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint / lint

'checkIsMobile' is defined but never used
import { useContext, useEffect } from 'react'
import { useNavigate, useParams } from 'react-router-dom'

import config from '@config'
import { AuthService } from '@services'

Check warning on line 9 in frontend/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint / lint

'AuthService' is defined but never used
import { useUser, useUserActions } from '@store'
import { useAuthQuery } from '@store-new'

Check warning on line 11 in frontend/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint / lint

'useAuthQuery' is defined but never used

import Routes from './Routes'

Expand Down Expand Up @@ -94,6 +94,8 @@
}
}, [isAuthenticated])

if (!isAuthenticated) return null

// if (!AuthService.isAuth()) return null

return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/admin/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const MainPage = () => {
return (
<PageLayoutNew>
<TelegramBackButton hidden />
{/* <TelegramMainButton text="Add Group or Channel" onClick={handleAddChat} /> */}
<TelegramMainButton text="Add Group or Channel" onClick={handleAddChat} />
<BlockNew gap={12} className={styles.container}>
<BlockNew padding="0 16px">
<Text type="hero" weight="bold">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export const PopularChatsList = ({ chats }: PopularChatsListProps) => {
description={
<BlockNew gap={6} row align="center" fadeIn={false}>
<Text type="caption2" color="secondary">
${Math.floor(chat.tcv).toLocaleString()}
{chat.tcv < 1
? 'New'
: `$${Math.floor(chat.tcv).toLocaleString()}`}
</Text>
<div className={styles.divider} />
<Text type="caption2" color="secondary">
Expand Down
Loading