Skip to content

Commit

Permalink
fixing banner
Browse files Browse the repository at this point in the history
  • Loading branch information
creed-victor committed Feb 10, 2021
1 parent aca83c4 commit c6c6ee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/app/components/PreOrderBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@
* PreOrderBanner
*
*/
import React, { useEffect, useState } from 'react';
import React from 'react';
import classNames from 'classnames';
import styles from './index.module.css';

export function PreOrderBanner() {
const [isWindow, setIsWindows] = useState(false);
useEffect(() => {
setIsWindows(navigator?.appVersion?.indexOf('Win') !== -1);
}, []);

return (
<div className="row mb-5">
<a
href="https://token.sovryn.app"
className={classNames(styles.banner, isWindow && styles.windows)}
className={classNames(styles.banner, styles.windows)}
rel="noreferrer noopener"
target="_blank"
>
Expand Down
1 change: 0 additions & 1 deletion src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export function App() {
<Route exact path="/liquidity" component={LiquidityPage} />
<Route exact path="/sandbox" component={SandboxPage} />
<Route exact path="/wallet" component={WalletPage} />
<Route exact path="/genesis" component={SalesPage} />
<Route
exact
path="/optin-success"
Expand Down

0 comments on commit c6c6ee3

Please sign in to comment.