Small cleanup.

This commit is contained in:
Lee Robinson 2024-07-28 23:26:03 -05:00
parent 9a4c995bb6
commit 37cb5e38da
8 changed files with 810 additions and 304 deletions

View File

@ -29,7 +29,6 @@ export function GridTileImage({
)} )}
> >
{props.src ? ( {props.src ? (
// eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript
<Image <Image
className={clsx('relative h-full w-full object-contain', { className={clsx('relative h-full w-full object-contain', {
'transition duration-300 ease-in-out group-hover:scale-105': isInteractive 'transition duration-300 ease-in-out group-hover:scale-105': isInteractive

View File

@ -6,7 +6,7 @@ import Link from 'next/link';
import { usePathname } from 'next/navigation'; import { usePathname } from 'next/navigation';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
const FooterMenuItem = ({ item }: { item: Menu }) => { export function FooterMenuItem({ item }: { item: Menu }) {
const pathname = usePathname(); const pathname = usePathname();
const [active, setActive] = useState(pathname === item.path); const [active, setActive] = useState(pathname === item.path);
@ -29,7 +29,7 @@ const FooterMenuItem = ({ item }: { item: Menu }) => {
</Link> </Link>
</li> </li>
); );
}; }
export default function FooterMenu({ menu }: { menu: Menu[] }) { export default function FooterMenu({ menu }: { menu: Menu[] }) {
if (!menu.length) return null; if (!menu.length) return null;

View File

@ -9,14 +9,5 @@ module.exports = {
pathname: '/s/files/**' pathname: '/s/files/**'
} }
] ]
},
async redirects() {
return [
{
source: '/password',
destination: '/',
permanent: true
}
];
} }
}; };

View File

@ -28,7 +28,6 @@
"@types/node": "20.14.12", "@types/node": "20.14.12",
"@types/react": "18.3.3", "@types/react": "18.3.3",
"@types/react-dom": "18.3.0", "@types/react-dom": "18.3.0",
"@vercel/git-hooks": "^1.0.0",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"postcss": "^8.4.39", "postcss": "^8.4.39",
"prettier": "3.3.3", "prettier": "3.3.3",

891
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff