From 87d92c4c91845a71a82e93b1018ce968fc849572 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 19 Mar 2022 00:15:21 +0600 Subject: [PATCH] Rename file extension --- src/App.css | 42 ------------------- src/App.jsx | 10 ++--- .../{LoadingContext.js => LoadingContext.jsx} | 0 .../{ThemeContext.js => ThemeContext.jsx} | 0 src/helpers/{utils.js => utils.jsx} | 0 5 files changed, 4 insertions(+), 48 deletions(-) delete mode 100644 src/App.css rename src/contexts/{LoadingContext.js => LoadingContext.jsx} (100%) rename src/contexts/{ThemeContext.js => ThemeContext.jsx} (100%) rename src/helpers/{utils.js => utils.jsx} (100%) diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 8da3fde..0000000 --- a/src/App.css +++ /dev/null @@ -1,42 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - -button { - font-size: calc(10px + 2vmin); -} diff --git a/src/App.jsx b/src/App.jsx index 7d4eb10..282947c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,9 +1,7 @@ -import { useState } from 'react' -import logo from './logo.svg' -import './App.css' +import { useState } from 'react'; function App() { - const [count, setCount] = useState(0) + const [count, setCount] = useState(0); return (
@@ -39,7 +37,7 @@ function App() {

- ) + ); } -export default App +export default App; diff --git a/src/contexts/LoadingContext.js b/src/contexts/LoadingContext.jsx similarity index 100% rename from src/contexts/LoadingContext.js rename to src/contexts/LoadingContext.jsx diff --git a/src/contexts/ThemeContext.js b/src/contexts/ThemeContext.jsx similarity index 100% rename from src/contexts/ThemeContext.js rename to src/contexts/ThemeContext.jsx diff --git a/src/helpers/utils.js b/src/helpers/utils.jsx similarity index 100% rename from src/helpers/utils.js rename to src/helpers/utils.jsx