Skip to content

Commit

Permalink
remove legacy image and links
Browse files Browse the repository at this point in the history
  • Loading branch information
ob6160 committed Sep 24, 2024
1 parent b2d6c58 commit c75168a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/EntryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
UseFormRegister,
FieldValues,
} from 'react-hook-form';
import Image from 'next/legacy/image';
import Image from 'next/image';
import Radio from '../design-system/components/RadioInput';
import isFunction from 'lodash/isFunction';
import omit from 'lodash/omit';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from 'next/link';

import Box from './Box';
import Text from './Text';
import Image from 'next/legacy/image';
import Image from 'next/image';

import poweredByVercel from '../../public/powered-by-vercel.svg';

Expand Down
1 change: 0 additions & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import dynamic from 'next/dynamic';
import { useFeedbackPopover } from './hooks';
import Text from '../Text';

// const Feedback = dynamic(() => import('../Feedback/Feedback'));
const Drawer = dynamic(() => import('../../design-system/components/Drawer'));

const Header = ({ children }) => {
Expand Down
6 changes: 1 addition & 5 deletions src/components/ToiletDetailsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,7 @@ const ToiletDetailsPanel: React.FC<ToiletDetailsPanelProps> = ({
</Box>
<Spacer mb={[0, 2]} />
Last {verifiedOrUpdated}:{' '}
<Link
href={`/explorer/loos/${data.id}`}
prefetch={false}
legacyBehavior
>
<Link href={`/explorer/loos/${data.id}`} prefetch={false}>
{lightFormat(verifiedOrUpdatedDate, 'dd/MM/yyyy, hh:mm aa')}
</Link>
</Box>
Expand Down
9 changes: 7 additions & 2 deletions src/design-system/components/Logo/Logo.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.logo {
width: 154px;
}
width: 154px;
}

.logo > img {
width: auto;
height: auto;
}
1 change: 0 additions & 1 deletion src/design-system/components/Logo/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const Logo = React.forwardRef<HTMLDivElement>((props, ref) => (
<Image
src={logo}
alt="The Great British Toilet Map"
layout="responsive"
unoptimized={!!process.env.STORYBOOK}
priority={true}
{...props}
Expand Down

0 comments on commit c75168a

Please sign in to comment.