diff --git a/src/apps/pillarx-app/index.tsx b/src/apps/pillarx-app/index.tsx index 6d32edb8..d1b1b4b9 100644 --- a/src/apps/pillarx-app/index.tsx +++ b/src/apps/pillarx-app/index.tsx @@ -37,7 +37,6 @@ import AnimatedTile from './components/AnimatedTile/AnimatedTitle'; import SkeletonTiles from './components/SkeletonTile/SkeletonTile'; import Body from './components/Typography/Body'; import WalletPortfolioTile from './components/WalletPortfolioTile/WalletPortfolioTile'; -import PerpsTile from './components/PerpsTile/PerpsTile'; // images import PillarXLogo from './components/PillarXLogo/PillarXLogo'; @@ -383,7 +382,7 @@ const App = () => { className="flex flex-col gap-[40px] tablet:gap-[28px] mobile:gap-[32px]" > - + {/* */} {DisplayHomeFeedTiles} {(isHomeFeedFetching || isHomeFeedLoading) && page === 1 && ( <> diff --git a/src/providers/AllowedAppsProvider.tsx b/src/providers/AllowedAppsProvider.tsx index 1987fa2d..f694591d 100644 --- a/src/providers/AllowedAppsProvider.tsx +++ b/src/providers/AllowedAppsProvider.tsx @@ -86,34 +86,10 @@ const AllowedAppsProvider = ({ children }: { children: React.ReactNode }) => { return; } - const appsWithPerps = [ - ...(data?.map((app: ApiAllowedApp) => app) || []), - // Add perps app locally - { - id: 'perps-local', - appId: 'perps', - type: 'app', - title: 'Perps', - name: 'Perps', - shortDescription: 'Perpetual futures trading on Hyperliquid', - tags: 'trading,derivatives', - } as ApiAllowedApp, - ]; - setAllowed(appsWithPerps); + setAllowed(data?.map((app: ApiAllowedApp) => app) || []); } catch (e) { console.warn('Error calling PillarX apps API', e); - // Set perps app as fallback if API fails - setAllowed([ - { - id: 'perps-local', - appId: 'perps', - type: 'app', - title: 'Perps', - name: 'Perps', - shortDescription: 'Perpetual futures trading on Hyperliquid', - tags: 'trading,derivatives', - } as ApiAllowedApp, - ]); + setAllowed([]); } setIsLoading(false); })(); diff --git a/src/providers/__tests__/AllowedAppsProvider.test.tsx b/src/providers/__tests__/AllowedAppsProvider.test.tsx index 9862281d..01cbeea7 100644 --- a/src/providers/__tests__/AllowedAppsProvider.test.tsx +++ b/src/providers/__tests__/AllowedAppsProvider.test.tsx @@ -19,16 +19,6 @@ describe('AllowedAppsProvider', () => { { appId: 'allowed-app-3' }, ]; - const perpsAppMock = { - id: 'perps-local', - appId: 'perps', - type: 'app', - title: 'Perps', - name: 'Perps', - shortDescription: 'Perpetual futures trading on Hyperliquid', - tags: 'trading,derivatives', - }; - let wrapper: React.FC; beforeEach(() => { @@ -56,7 +46,7 @@ describe('AllowedAppsProvider', () => { expect(result.current.isLoading).toEqual(false); }); - expect(result.current.allowed).toEqual([...allowedAppsMock, perpsAppMock]); + expect(result.current.allowed).toEqual(allowedAppsMock); }); afterEach(() => {