From e90cc6b1911afdf3770ff16411c0ec76e2dd3d80 Mon Sep 17 00:00:00 2001 From: Yiqing Zhu <793831308@qq.com> Date: Sat, 26 Mar 2022 17:56:51 +1100 Subject: [PATCH] Chap04 -> Styling components with CSS modules --- QandA/frontend/src/{App.css => App.module.css} | 0 QandA/frontend/src/App.tsx | 4 ++-- QandA/frontend/src/{Header.css => Header.module.css} | 0 QandA/frontend/src/Header.tsx | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename QandA/frontend/src/{App.css => App.module.css} (100%) rename QandA/frontend/src/{Header.css => Header.module.css} (100%) diff --git a/QandA/frontend/src/App.css b/QandA/frontend/src/App.module.css similarity index 100% rename from QandA/frontend/src/App.css rename to QandA/frontend/src/App.module.css diff --git a/QandA/frontend/src/App.tsx b/QandA/frontend/src/App.tsx index f601372..4b1e4ba 100644 --- a/QandA/frontend/src/App.tsx +++ b/QandA/frontend/src/App.tsx @@ -1,11 +1,11 @@ import React from 'react'; import { Header } from './Header'; -import './App.css'; +import style from './App.module.css'; import { HomePage } from './HomePage'; function App() { return ( -