Skip to content

Commit

Permalink
feature: add unsupported alert (#94)
Browse files Browse the repository at this point in the history
* feature: add unsupported alert

* chore: update copy
  • Loading branch information
tomjeatt authored Aug 2, 2024
1 parent 85aa71b commit ed785d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/bob-pay/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ReactNode, Suspense, lazy, useEffect } from 'react';
import { BrowserRouter, Route, Routes, useLocation } from 'react-router-dom';
import { DynamicEmbeddedWidget, useDynamicContext } from '@dynamic-labs/sdk-react-core';
import { usePrices } from '@gobob/react-query';
import { Card, Flex, P, TextLink } from '@gobob/ui';
import { Alert, Card, Flex, P, TextLink } from '@gobob/ui';

import { Header, Layout, Main } from './components';
import { CHAIN, RoutesPath } from './constants';
Expand Down Expand Up @@ -33,6 +33,9 @@ const ProtectedRoute = ({ children }: { children: ReactNode }) => {
if (!isAuthenticated) {
return (
<Main maxWidth='md' padding='md'>
<Alert status='info' variant='outlined'>
BOB Pay is currently in testing. Please try it at your own risk.
</Alert>
<Flex alignItems='center' direction='column' gap='2xl' marginTop='xl' style={{ width: '100%' }}>
<Card bordered={false} padding='none' style={{ width: '100%' }}>
<DynamicEmbeddedWidget background='none' />
Expand Down

0 comments on commit ed785d4

Please sign in to comment.