Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vf 193 om oss mobile view #375

Merged
merged 17 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/Header/Tab.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { useEffect, useRef, useState } from "react";
import routes from "@/pages/public/routes";
import { useNavigate } from 'react-router-dom';
import { useNavigate} from 'react-router-dom';

export const Tab = () => {
const tabsRef = useRef<(HTMLElement | null)[]>([]);
const [tabUnderlineWidth, setTabUnderlineWidth] = useState(0);
const [tabUnderlineLeft, setTabUnderlineLeft] = useState(0);
const navigate = useNavigate();

const [activeTabIndex, setActiveTabIndex] = useState<number>(
() => Number(localStorage.getItem("activeTabIndex")) || 0
);
Expand Down Expand Up @@ -43,8 +42,8 @@
<button
type="button"
key={route.name}
ref={(el) => (tabsRef.current[index] = el)}

Check failure on line 45 in src/components/Header/Tab.tsx

View workflow job for this annotation

GitHub Actions / code-quality

The assignment should not be in an expression.
className={`${isActive ? `text-black` : `hover:text-black text-neutral-700 dark:text-vektor-blue dark:hover:text-vektor-bg`} z-20 text-sm my-auto cursor-pointer select-none rounded-full px-4 text-center font-medium`}

Check failure on line 46 in src/components/Header/Tab.tsx

View workflow job for this annotation

GitHub Actions / code-quality

Do not use template literals if interpolation and special-character handling are not needed.

Check failure on line 46 in src/components/Header/Tab.tsx

View workflow job for this annotation

GitHub Actions / code-quality

Do not use template literals if interpolation and special-character handling are not needed.
onClick={() => {
setActiveTabIndex(index);
navigate(route.path ?? "");
Expand Down
9 changes: 0 additions & 9 deletions src/pages/public/OmOss/components/OmOss.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,6 @@ const OmOss = (): JSX.Element => {
</AccordionItem>
))}
</Accordion>
<p className="my-6 md:text-xl dark:text-gray-200">
Lurer du på noe?
<a
className="underline text-blue-600 hover:text-blue-800 dark:text-blue-300 pl-4"
href="/kontakt"
>
Ta kontakt med oss!
</a>
</p>
</div>
);

Expand Down
Loading