Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove FAQ section #2808

Merged
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: 0 additions & 2 deletions wormhole-connect/src/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { WormholeConnectConfig } from './config/types';
import { setConfig } from './config';
import config from './config';

import FAQ from './views/FAQ';
import Terms from './views/Terms';
import TxSearch from './views/TxSearch';
import { setRoute } from './store/router';
Expand Down Expand Up @@ -100,7 +99,6 @@ function AppRouter(props: Props) {
{route === 'search' && <TxSearch />}
{route === 'history' && <TxHistory />}
{route === 'terms' && <Terms />}
{route === 'faq' && <FAQ />}
</div>
);
}
Expand Down
1 change: 0 additions & 1 deletion wormhole-connect/src/components/FooterNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function itemAppender(acc: MenuItem[], item: MenuEntry) {
function defaultMenuItems(navigate: (name: Route) => void): MenuItem[] {
return [
{ label: 'Resume Transaction', handleClick: () => navigate('search') },
{ label: 'FAQs', handleClick: () => navigate('faq') },
{ label: 'Terms of Use', handleClick: () => navigate('terms') },
];
}
Expand Down
3 changes: 0 additions & 3 deletions wormhole-connect/src/components/MenuFull.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ export default function Menu() {
<div className={classes.menuItem} onClick={() => navigate('search')}>
Resume transaction
</div>
<div className={classes.menuItem} onClick={() => navigate('faq')}>
FAQs
</div>
<div className={classes.menuItem} onClick={() => navigate('terms')}>
Terms of Use
</div>
Expand Down
8 changes: 1 addition & 7 deletions wormhole-connect/src/store/router.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import { TransferWallet } from 'utils/wallet';

export type Route =
| 'bridge'
| 'redeem'
| 'history'
| 'search'
| 'terms'
| 'faq';
export type Route = 'bridge' | 'redeem' | 'history' | 'search' | 'terms';

export interface RouterState {
route: Route;
Expand Down
227 changes: 0 additions & 227 deletions wormhole-connect/src/views/FAQ.tsx

This file was deleted.

Loading