From a102b778e29c6dff3802da944afb00b859315d39 Mon Sep 17 00:00:00 2001 From: Lila Rest Date: Sun, 18 Feb 2024 10:30:53 +0100 Subject: [PATCH] fix: remove unused component + fix missing excluded files in .vscode/settings.json --- .vscode/settings.json | 9 ++++++++- src/components/SmallScreenMessage.tsx | 28 --------------------------- 2 files changed, 8 insertions(+), 29 deletions(-) delete mode 100644 src/components/SmallScreenMessage.tsx diff --git a/.vscode/settings.json b/.vscode/settings.json index e3fd2a08..c64bbfa1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -41,7 +41,14 @@ "contracts/hardhat/cache": false, "secrets.json": false, ".env": false, - "report.md": false + "report.md": false, + "postcss.config.cjs": false, + "hardhat.config.cts": false, + "bun.lockb": false, + ".prettierrc.cjs": false, + "env.mjs": false, + "docs/": false, + "scripts/": false }, // Required because of a bug with pnpm and prettier plugins. // See: https://github.com/prettier-solidity/prettier-plugin-solidity#pnpm diff --git a/src/components/SmallScreenMessage.tsx b/src/components/SmallScreenMessage.tsx deleted file mode 100644 index c8e67a83..00000000 --- a/src/components/SmallScreenMessage.tsx +++ /dev/null @@ -1,28 +0,0 @@ -"use client"; -import { useEffect, useState } from "react"; -import Logo from "./ui/Logo"; - -export const SmallScreenMessage = () => { - const [isSmallScreen, setIsSmallScreen] = useState(false); - - const handleResize = () => { - if (window.innerWidth < 1024) setIsSmallScreen(true); - else setIsSmallScreen(false); - }; - - useEffect(() => { - handleResize(); - window.addEventListener("resize", handleResize); - return () => window.removeEventListener("resize", handleResize); - }, []); - - if (isSmallScreen) - return ( -
- -

The Ledgity Yield app is currently not available on small screens.

-

Please access it from a computer.

-
- ); - return null; -};