Skip to content

Commit

Permalink
Eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
loris-maru committed Oct 24, 2024
1 parent 79d3f7d commit af684dd
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions src/components/AboutSFN/Blocs/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Link from 'next/link';
import { Dispatch, SetStateAction } from 'react';
import { useInView } from 'react-intersection-observer';
import Link from 'next/link';

import { OBPLogo } from '@/components/Entrypoint/segments/Splash';
import { classNames } from '@/util/utils';
Expand Down Expand Up @@ -31,27 +31,6 @@ const content = [
},
],
},
// {
// title: 'Contact',
// items: [
// {
// title: 'Link 1',
// url: '#',
// },
// {
// title: 'Link 2',
// url: '#',
// },
// {
// title: 'Link 3',
// url: '#',
// },
// {
// title: 'Link 4',
// url: '#',
// },
// ],
// },
{
title: 'Documentation',
items: [
Expand All @@ -77,22 +56,26 @@ const content = [

export default function Footer({
onShowSteps,
className,
}: {
onShowSteps: Dispatch<SetStateAction<boolean>>;
onShowSteps?: Dispatch<SetStateAction<boolean>>;
className?: string;
}) {
const { ref } = useInView({
threshold: 0.5,
onChange(inView) {
onShowSteps(!inView);
if (onShowSteps) {
onShowSteps(!inView);
}
},
});

return (
<div
ref={ref}
className={classNames(
'relative flex w-full snap-start flex-col items-start justify-between md:mt-[30vh]',
'gap-5 border-t border-solid border-primary-4 px-[14vw] pb-20 pt-32 xl:flex-row'
'relative flex w-full snap-start flex-col items-start justify-between gap-5 border-t border-solid border-primary-4 px-[14vw] pb-20 pt-32 md:mt-[30vh] xl:flex-row',
className
)}
>
<OBPLogo color="text-white" className="mb-4 md:mb-0" />
Expand Down

0 comments on commit af684dd

Please sign in to comment.