From 313e675654df2b2cec1c3267d65786ea605f3e60 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Tue, 18 Oct 2022 00:01:19 +0300 Subject: [PATCH] Linter fixes --- src/components/Nav/Popup.module.scss | 2 ++ src/components/Nav/Popup.tsx | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Nav/Popup.module.scss b/src/components/Nav/Popup.module.scss index 4714205a..63405563 100644 --- a/src/components/Nav/Popup.module.scss +++ b/src/components/Nav/Popup.module.scss @@ -1,7 +1,9 @@ .popup { background: #fff; border: 2px solid #000; + @include font-size(1.6rem); + padding: 2.4rem 2.4rem 2.4rem 1.6rem; position: absolute; z-index: 10; diff --git a/src/components/Nav/Popup.tsx b/src/components/Nav/Popup.tsx index b68af383..451caf88 100644 --- a/src/components/Nav/Popup.tsx +++ b/src/components/Nav/Popup.tsx @@ -12,10 +12,6 @@ interface PopupProps { export const Popup = (props: PopupProps) => { const { getModal } = useModalStore() - const wrapClick = (ev: Event) => { - if ((ev.target as HTMLElement).classList.contains('popup')) hideModal() - } - onMount(() => { window.addEventListener('keydown', (e: KeyboardEvent) => { if (e.key === 'Escape') hideModal() @@ -29,7 +25,7 @@ export const Popup = (props: PopupProps) => { return ( -
+
{props.children}