From 97f8dd83cece69d03e24462327d20ccd3ce22649 Mon Sep 17 00:00:00 2001 From: peintnermax Date: Mon, 12 Aug 2024 09:58:49 +0200 Subject: [PATCH] lint --- apps/login/package.json | 4 ++-- apps/login/src/app/(login)/overview/page.tsx | 9 --------- apps/login/src/ui/Avatar.tsx | 8 ++++++-- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/apps/login/package.json b/apps/login/package.json index 73b112d6b7e..cb84479cd39 100644 --- a/apps/login/package.json +++ b/apps/login/package.json @@ -7,8 +7,8 @@ "test:watch": "concurrently --kill-others 'npm:test:unit:watch' 'npm:test:integration:watch'", "test:unit": "vitest", "test:unit:watch": "pnpm test:unit --watch", - "test:integration": "pnpm mock:build && concurrently --names 'mock,test' --success command-test --kill-others 'pnpm:mock' 'env-cmd -f ./.env.integration start-server-and-test start http://localhost:3000/loginname \"test:integration:run\"'", - "test:integration:watch": "concurrently --names 'mock,test' --kill-others 'pnpm:mock' 'env-cmd -f ./.env.integration start-server-and-test dev http://localhost:3000/loginname \"pnpm nodemon -e js,jsx,ts,tsx,css,scss --ignore \\\"__test__/**\\\" --exec \\\"pnpm test:integration:run\\\"\"'", + "test:integration": "pnpm mock:build && concurrently --names 'mock,test' --success command-test --kill-others 'pnpm:mock' 'env-cmd -f ./.env.integration start-server-and-test start http://localhost:3000 \"test:integration:run\"'", + "test:integration:watch": "concurrently --names 'mock,test' --kill-others 'pnpm:mock' 'env-cmd -f ./.env.integration start-server-and-test dev http://localhost:3000 \"pnpm nodemon -e js,jsx,ts,tsx,css,scss --ignore \\\"__test__/**\\\" --exec \\\"pnpm test:integration:run\\\"\"'", "test:integration:run": "cypress run --config-file ./cypress/cypress.config.ts --quiet", "test:integration:open": "cypress open --config-file ./cypress/cypress.config.ts", "mock": "pnpm mock:build && pnpm mock:run", diff --git a/apps/login/src/app/(login)/overview/page.tsx b/apps/login/src/app/(login)/overview/page.tsx index 7bddc8caa42..4cb2227bc99 100644 --- a/apps/login/src/app/(login)/overview/page.tsx +++ b/apps/login/src/app/(login)/overview/page.tsx @@ -38,15 +38,6 @@ export default function Page() { ); })} - -
-
- Deploy your own on Vercel -
- - Deploy with Vercel - -
diff --git a/apps/login/src/ui/Avatar.tsx b/apps/login/src/ui/Avatar.tsx index bfa5d229aed..a6203d4b460 100644 --- a/apps/login/src/ui/Avatar.tsx +++ b/apps/login/src/ui/Avatar.tsx @@ -2,6 +2,7 @@ import { ColorShade, getColorHash } from "@/utils/colors"; import { useTheme } from "next-themes"; +import Image from "next/image"; interface AvatarProps { name: string | null | undefined; @@ -77,8 +78,11 @@ export function Avatar({ style={resolvedTheme === "light" ? avatarStyleLight : avatarStyleDark} > {imageUrl ? ( - avatar ) : (