From 7fbcdd196c9d8ea6ff6d44f8fb7aadc8cb2f547a Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Sat, 27 Nov 2021 03:12:35 +0200 Subject: [PATCH] Tweaks --- app/components/Layout/MobileNav.tsx | 2 +- app/components/Layout/index.tsx | 2 +- app/styles/tournament.css | 4 ++++ package-lock.json | 13 +++++++++++++ package.json | 1 + 5 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app/components/Layout/MobileNav.tsx b/app/components/Layout/MobileNav.tsx index ff02c3170..a1468e66a 100644 --- a/app/components/Layout/MobileNav.tsx +++ b/app/components/Layout/MobileNav.tsx @@ -1,7 +1,7 @@ import classNames from "classnames"; import { Fragment } from "react"; import { Link } from "remix"; -import { navItems } from "../../utils"; +import { navItems } from "~/constants"; import { SearchInput } from "./SearchInput"; export function MobileNav({ diff --git a/app/components/Layout/index.tsx b/app/components/Layout/index.tsx index 763f65ae6..77eacd48a 100644 --- a/app/components/Layout/index.tsx +++ b/app/components/Layout/index.tsx @@ -6,7 +6,7 @@ import { UserItem } from "./UserItem"; import { Link } from "remix"; import { navItems } from "~/constants"; -export function Layout({ children }: { children: React.ReactElement }) { +export function Layout({ children }: { children: React.ReactNode }) { const [menuExpanded, setMenuExpanded] = useState(false); return ( diff --git a/app/styles/tournament.css b/app/styles/tournament.css index 918910a87..6b140e452 100644 --- a/app/styles/tournament.css +++ b/app/styles/tournament.css @@ -147,6 +147,10 @@ text-decoration: none; } +.info-banner__action-button:active { + transform: translateY(1px); +} + @media screen and (min-width: 480px) { .tournament__links-container { grid-template-columns: repeat(3, 100px); diff --git a/package-lock.json b/package-lock.json index d30f07b80..8814b6b2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,7 @@ }, "devDependencies": { "@remix-run/dev": "^1.0.6", + "@types/faker": "^5.5.9", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", "concurrently": "^6.4.0", @@ -395,6 +396,12 @@ "@types/estree": "*" } }, + "node_modules/@types/faker": { + "version": "5.5.9", + "resolved": "https://registry.npmjs.org/@types/faker/-/faker-5.5.9.tgz", + "integrity": "sha512-uCx6mP3UY5SIO14XlspxsGjgaemrxpssJI0Ol+GfhxtcKpv9pgRZYsS4eeKeHVLje6Qtc8lGszuBI461+gVZBA==", + "dev": true + }, "node_modules/@types/hast": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz", @@ -6666,6 +6673,12 @@ "@types/estree": "*" } }, + "@types/faker": { + "version": "5.5.9", + "resolved": "https://registry.npmjs.org/@types/faker/-/faker-5.5.9.tgz", + "integrity": "sha512-uCx6mP3UY5SIO14XlspxsGjgaemrxpssJI0Ol+GfhxtcKpv9pgRZYsS4eeKeHVLje6Qtc8lGszuBI461+gVZBA==", + "dev": true + }, "@types/hast": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz", diff --git a/package.json b/package.json index 8729c553e..9612bc4ba 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ }, "devDependencies": { "@remix-run/dev": "^1.0.6", + "@types/faker": "^5.5.9", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", "concurrently": "^6.4.0",