Skip to content

Commit

Permalink
fix: update powered by look
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Apr 21, 2023
1 parent 612e8d9 commit cccd168
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions packages/widget/src/components/PoweredBy/PoweredBy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { version } from '../../config/version';
import { useWidgetConfig } from '../../providers';
import { HiddenUI } from '../../types';
import { navigationRoutes } from '../../utils';
import { LiFiLogo } from '../LiFiLogo';
import { Link } from './PoweredBy.style';

export const PoweredBy: React.FC = () => {
Expand All @@ -19,25 +18,33 @@ export const PoweredBy: React.FC = () => {
return (
<Box
px={3}
py={hiddenUI?.includes(HiddenUI.PoweredBy) ? 1 : 2}
pt={1}
pb={hiddenUI?.includes(HiddenUI.PoweredBy) ? 1 : 2}
sx={{
display: 'flex',
alignItems: 'flex-end',
justifyContent: 'flex-end',
}}
>
{!hiddenUI?.includes(HiddenUI.PoweredBy) ? (
<Tooltip title={`v${version}`} placement="top" enterDelay={3000} arrow>
<Tooltip title={`v${version}`} placement="top" enterDelay={1000} arrow>
<Link
href="https://li.fi"
target="_blank"
underline="none"
color="text.primary"
>
<Typography color="text.secondary" fontSize={12} px={0.5}>
<Typography
color="text.secondary"
fontSize={12}
fontWeight={500}
px={0.5}
>
Powered by
</Typography>
<LiFiLogo variant="full" style={{ height: 16, width: 42 }} />
<Typography color="text.primary" fontSize={12} fontWeight={500}>
LI.FI
</Typography>
</Link>
</Tooltip>
) : null}
Expand Down

0 comments on commit cccd168

Please sign in to comment.