From a1ff718a82523664512279863d763f94d2b4f562 Mon Sep 17 00:00:00 2001 From: devartes Date: Fri, 6 Jan 2023 10:59:26 -0300 Subject: [PATCH] feat(header): add CSS Modules --- .../{Header.scss => Header.module.scss} | 2 ++ src/components/Header/Header.tsx | 8 +++---- src/components/Header/HeaderContentBottom.tsx | 16 ++++++++++--- src/components/Header/HeaderContentTop.tsx | 24 ++++++++++++------- 4 files changed, 34 insertions(+), 16 deletions(-) rename src/components/Header/{Header.scss => Header.module.scss} (99%) diff --git a/src/components/Header/Header.scss b/src/components/Header/Header.module.scss similarity index 99% rename from src/components/Header/Header.scss rename to src/components/Header/Header.module.scss index fa3a3bb..8791baf 100644 --- a/src/components/Header/Header.scss +++ b/src/components/Header/Header.module.scss @@ -387,3 +387,5 @@ header { border-top-width: 0px; } } + + diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index da913b2..4f11655 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -1,5 +1,5 @@ import { HeaderContentTop } from "./HeaderContentTop"; -import "./Header.scss"; +import styles from "./Header.module.scss" import { HeaderContentBottom } from "./HeaderContentBottom"; import {useState} from "react"; import Icon__Menu from "../../assets/imgs/IconMenu.svg"; @@ -10,9 +10,9 @@ const Header = () => { return (
- diff --git a/src/components/Header/HeaderContentBottom.tsx b/src/components/Header/HeaderContentBottom.tsx index 30a1450..5d02795 100644 --- a/src/components/Header/HeaderContentBottom.tsx +++ b/src/components/Header/HeaderContentBottom.tsx @@ -1,4 +1,4 @@ -import "./Header.scss" +import styles from "./Header.module.scss" import React from "react"; interface HeaderContentProps { @@ -9,8 +9,18 @@ interface HeaderContentProps { const HeaderContentBottom = ({menuIsVisible,setMenuIsVisible}: HeaderContentProps) => { return ( <> -
setMenuIsVisible(false)} > -