diff --git a/src/App.tsx b/src/App.tsx index 0429f67..03db29a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,15 +1,15 @@ -import { A, Navigate, Route, Router, Routes } from '@solidjs/router'; +import { Route, Router, Routes } from '@solidjs/router'; import type { Component } from 'solid-js'; import * as c from './Challenges'; -import { Challenges, Home } from './Pages'; -import { Footer, Navbar } from './components'; +import { Challenges } from './Pages'; +import { Navbar } from './components'; const App: Component = () => { return ( <> - }> + }> } /> } /> @@ -20,8 +20,6 @@ const App: Component = () => { } /> } /> - {/* Paths below are hosted on a different site*/} - } /> diff --git a/src/components/ChallengeCard/ChallengeCard.module.scss b/src/components/ChallengeCard/ChallengeCard.module.scss index 012ba97..b3fa084 100644 --- a/src/components/ChallengeCard/ChallengeCard.module.scss +++ b/src/components/ChallengeCard/ChallengeCard.module.scss @@ -16,7 +16,7 @@ overflow: hidden; & img { - max-width: 100%; + width: 100%; max-height: 100%; object-fit: cover; } diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index dcf66d5..2fe90e2 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -1,4 +1,3 @@ -import type { Location } from '@solidjs/router'; import { A, AnchorProps, useLocation, useNavigate } from '@solidjs/router'; import s from './Navbar.module.css'; @@ -7,15 +6,10 @@ export function Link(props: AnchorProps) { return ; } -class LocationState extends Location { - previous?: string; -} - // Credit for Navigate Back solution: // https://github.com/solidjs/solid-router/discussions/231 export function BackButton({ text }: { text?: string }) { const navigate = useNavigate(); - const location = useLocation(); // Credit for solution: // https://bobbyhadz.com/blog/typescript-no-overload-matches-this-call @@ -31,14 +25,14 @@ const Navbar = () => { return ( ); };