Skip to content

Commit

Permalink
fix: hide powered by section on token page
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Sep 20, 2022
1 parent acf3d65 commit 41cd261
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/widget/src/components/PoweredBy/PoweredBy.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { Box, Tooltip, Typography } from '@mui/material';
import { useLocation } from 'react-router-dom';
import { version } from '../../config/version';
import { navigationRoutes } from '../../utils';
import { LiFiLogo } from '../LiFiLogo';
import { Link } from './PoweredBy.style';

export const PoweredBy: React.FC = () => {
const { pathname } = useLocation();
if (
pathname.includes(navigationRoutes.fromToken) ||
pathname.includes(navigationRoutes.toToken)
) {
return null;
}
return (
<Box
px={3}
Expand Down

0 comments on commit 41cd261

Please sign in to comment.