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
|
||||||
|
}
|
@ -11,4 +11,4 @@ export const DateAndTime = ({ weatherData, systemUsed }) => {
|
|||||||
)} ${getAMPM(systemUsed, weatherData.dt, weatherData.timezone)}`}
|
)} ${getAMPM(systemUsed, weatherData.dt, weatherData.timezone)}`}
|
||||||
</h2>
|
</h2>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -36,4 +36,4 @@ export const MainCard = ({
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
getVisibility,
|
getVisibility,
|
||||||
getWindSpeed,
|
getWindSpeed,
|
||||||
} from "../services/utils";
|
} from "../services/utils";
|
||||||
import {MetricsCard} from "./MetricsCard";
|
import { MetricsCard } from "./MetricsCard";
|
||||||
import styles from "./MetricsBox.module.css";
|
import styles from "./MetricsBox.module.css";
|
||||||
|
|
||||||
export const MetricsBox = ({ weatherData, systemUsed }) => {
|
export const MetricsBox = ({ weatherData, systemUsed }) => {
|
||||||
@ -60,4 +60,4 @@ export const MetricsBox = ({ weatherData, systemUsed }) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
import styles from "./Search.module.css";
|
import styles from "./Search.module.css";
|
||||||
|
|
||||||
export const Search = ({ placeHolder, value, onFocus, onChange, onKeyDown }) => {
|
export const Search = ({
|
||||||
|
placeHolder,
|
||||||
|
value,
|
||||||
|
onFocus,
|
||||||
|
onChange,
|
||||||
|
onKeyDown,
|
||||||
|
}) => {
|
||||||
return (
|
return (
|
||||||
<input
|
<input
|
||||||
className={styles.search}
|
className={styles.search}
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
|
|
||||||
import {MainCard} from "../components/MainCard";
|
import { MainCard } from "../components/MainCard";
|
||||||
import {ContentBox} from "../components/ContentBox";
|
import { ContentBox } from "../components/ContentBox";
|
||||||
import {Header} from "../components/Header";
|
import { Header } from "../components/Header";
|
||||||
import {DateAndTime} from "../components/DateAndTime";
|
import { DateAndTime } from "../components/DateAndTime";
|
||||||
import {Search} from "../components/Search";
|
import { Search } from "../components/Search";
|
||||||
import {MetricsBox} from "../components/MetricsBox";
|
import { MetricsBox } from "../components/MetricsBox";
|
||||||
import {UnitSwitch} from "../components/UnitSwitch";
|
import { UnitSwitch } from "../components/UnitSwitch";
|
||||||
import {LoadingScreen} from "../components/LoadingScreen";
|
import { LoadingScreen } from "../components/LoadingScreen";
|
||||||
import {ErrorScreen} from "../components/ErrorScreen";
|
import { ErrorScreen } from "../components/ErrorScreen";
|
||||||
|
|
||||||
import styles from "../styles/Home.module.css";
|
import styles from "../styles/Home.module.css";
|
||||||
|
|
||||||
@ -82,4 +82,3 @@ export const App = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
// execute
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user