format code
This commit is contained in:
parent
3cc4bd3f54
commit
0ab4897e6e
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnPaste": true
|
||||
}
|
@ -5,7 +5,7 @@ import {
|
||||
getVisibility,
|
||||
getWindSpeed,
|
||||
} from "../services/utils";
|
||||
import {MetricsCard} from "./MetricsCard";
|
||||
import { MetricsCard } from "./MetricsCard";
|
||||
import styles from "./MetricsBox.module.css";
|
||||
|
||||
export const MetricsBox = ({ weatherData, systemUsed }) => {
|
||||
|
@ -1,6 +1,12 @@
|
||||
import styles from "./Search.module.css";
|
||||
|
||||
export const Search = ({ placeHolder, value, onFocus, onChange, onKeyDown }) => {
|
||||
export const Search = ({
|
||||
placeHolder,
|
||||
value,
|
||||
onFocus,
|
||||
onChange,
|
||||
onKeyDown,
|
||||
}) => {
|
||||
return (
|
||||
<input
|
||||
className={styles.search}
|
||||
|
@ -1,14 +1,14 @@
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
import {MainCard} from "../components/MainCard";
|
||||
import {ContentBox} from "../components/ContentBox";
|
||||
import {Header} from "../components/Header";
|
||||
import {DateAndTime} from "../components/DateAndTime";
|
||||
import {Search} from "../components/Search";
|
||||
import {MetricsBox} from "../components/MetricsBox";
|
||||
import {UnitSwitch} from "../components/UnitSwitch";
|
||||
import {LoadingScreen} from "../components/LoadingScreen";
|
||||
import {ErrorScreen} from "../components/ErrorScreen";
|
||||
import { MainCard } from "../components/MainCard";
|
||||
import { ContentBox } from "../components/ContentBox";
|
||||
import { Header } from "../components/Header";
|
||||
import { DateAndTime } from "../components/DateAndTime";
|
||||
import { Search } from "../components/Search";
|
||||
import { MetricsBox } from "../components/MetricsBox";
|
||||
import { UnitSwitch } from "../components/UnitSwitch";
|
||||
import { LoadingScreen } from "../components/LoadingScreen";
|
||||
import { ErrorScreen } from "../components/ErrorScreen";
|
||||
|
||||
import styles from "../styles/Home.module.css";
|
||||
|
||||
@ -82,4 +82,3 @@ export const App = () => {
|
||||
};
|
||||
|
||||
export default App;
|
||||
// execute
|
||||
|
Loading…
x
Reference in New Issue
Block a user