feat: sync and update with all changes from fork (#720)
* feat: sync and update with all changes from fork * refactor: extract clipboard copy logic into custom hook * fix: correct spelling of DEFAULT_REFRESH_FREQUENCY_MS in Stamps and WalletBalance providers * refactor(ui-tests): replace fixed sleeps with condition-based waits * fix: handle null values for size and granteeCount in infoGroups * fix(lint): add newline at end of file in useClipboardCopy hook * fix(ui-tests): page.goto URL * refactor: update import paths for useClipboardCopy --------- Co-authored-by: Ferenc Sárai <sarai.ferenc@gmail.com>
This commit is contained in:
+10
-12
@@ -1,34 +1,34 @@
|
||||
import { ReactElement, useContext } from 'react'
|
||||
import { Route, Routes } from 'react-router-dom'
|
||||
|
||||
import { AccountChequebook } from './pages/account/chequebook/AccountChequebook'
|
||||
import { AccountFeeds } from './pages/account/feeds/AccountFeeds'
|
||||
import { AccountStaking } from './pages/account/staking/AccountStaking'
|
||||
import { AccountStamps } from './pages/account/stamps/AccountStamps'
|
||||
import { AccountWallet } from './pages/account/wallet/AccountWallet'
|
||||
import FDP from './pages/fdp'
|
||||
import CreateNewFeed from './pages/feeds/CreateNewFeed'
|
||||
import { FeedSubpage } from './pages/feeds/FeedSubpage'
|
||||
import UpdateFeed from './pages/feeds/UpdateFeed'
|
||||
import { FileManagerPage } from './pages/filemanager'
|
||||
import { Download } from './pages/files/Download'
|
||||
import { Share } from './pages/files/Share'
|
||||
import { Upload } from './pages/files/Upload'
|
||||
import { UploadLander } from './pages/files/UploadLander'
|
||||
import GiftCards from './pages/gift-code'
|
||||
import GiftCards from './pages/giftCode'
|
||||
import Info from './pages/info'
|
||||
import PageNotFound from './pages/notFound/PageNotFound'
|
||||
import LightModeRestart from './pages/restart/LightModeRestart'
|
||||
import Settings from './pages/settings'
|
||||
import { CreatePostageStampPage } from './pages/stamps/CreatePostageStampAdvancedPage'
|
||||
import { CreatePostageStampBasicPage } from './pages/stamps/CreatePostageStampStandardPage'
|
||||
import Status from './pages/status'
|
||||
import TopUp from './pages/top-up'
|
||||
import { BankCardTopUpIndex } from './pages/top-up/BankCardTopUpIndex'
|
||||
import { CryptoTopUpIndex } from './pages/top-up/CryptoTopUpIndex'
|
||||
import { GiftCardFund } from './pages/top-up/GiftCardFund'
|
||||
import { GiftCardTopUpIndex } from './pages/top-up/GiftCardTopUpIndex'
|
||||
import { Swap } from './pages/top-up/Swap'
|
||||
import TopUp from './pages/topUp'
|
||||
import { BankCardTopUpIndex } from './pages/topUp/BankCardTopUpIndex'
|
||||
import { CryptoTopUpIndex } from './pages/topUp/CryptoTopUpIndex'
|
||||
import { GiftCardFund } from './pages/topUp/GiftCardFund'
|
||||
import { GiftCardTopUpIndex } from './pages/topUp/GiftCardTopUpIndex'
|
||||
import { Swap } from './pages/topUp/Swap'
|
||||
import { Context as SettingsContext } from './providers/Settings'
|
||||
import { FileManagerPage } from './pages/filemanager'
|
||||
import PageNotFound from './pages/not-found/PageNotFound'
|
||||
|
||||
export enum ROUTES {
|
||||
INFO = '/',
|
||||
@@ -59,7 +59,6 @@ export enum ROUTES {
|
||||
ACCOUNT_FEEDS_VIEW = '/account/feeds/view/:uuid',
|
||||
ACCOUNT_INVITATIONS = '/account/invitations',
|
||||
ACCOUNT_STAKING = '/account/staking',
|
||||
FDP = '/fdp',
|
||||
}
|
||||
|
||||
export const ACCOUNT_TABS = [
|
||||
@@ -101,7 +100,6 @@ const BaseRouter = (): ReactElement => {
|
||||
<Route path={ROUTES.ACCOUNT_FEEDS_UPDATE} element={<UpdateFeed />} />
|
||||
<Route path={ROUTES.ACCOUNT_FEEDS_VIEW} element={<FeedSubpage />} />
|
||||
<Route path={ROUTES.ACCOUNT_STAKING} element={<AccountStaking />} />
|
||||
<Route path={ROUTES.FDP} element={<FDP />} />
|
||||
{isDesktop && <Route path={ROUTES.ACCOUNT_INVITATIONS} element={<GiftCards />} />}
|
||||
<Route path="*" element={<PageNotFound />} />
|
||||
</Routes>
|
||||
|
||||
Reference in New Issue
Block a user