diff --git a/frontend/src/Layout/Layout.tsx b/frontend/src/Layout/Layout.tsx index a091440..211ff77 100644 --- a/frontend/src/Layout/Layout.tsx +++ b/frontend/src/Layout/Layout.tsx @@ -13,8 +13,14 @@ const Layout: React.FC = ({ children }) => {
{children}
diff --git a/frontend/src/components/ChangeAPI.tsx b/frontend/src/components/ChangeAPI.tsx index 5d6daa4..464bcc8 100644 --- a/frontend/src/components/ChangeAPI.tsx +++ b/frontend/src/components/ChangeAPI.tsx @@ -1,11 +1,12 @@ import { useState } from "react"; +import React from "react"; import { changeAPIcookie } from "../utils/changeAPIcookie"; interface Props { currentAPIKey: string; } -function ChangeAPI({ currentAPIKey }: Props) { +const ChangeAPI: React.FC = ({ currentAPIKey }) => { const [apiKey, setApiKey] = useState(currentAPIKey); return ( @@ -14,6 +15,13 @@ function ChangeAPI({ currentAPIKey }: Props) {

Update your API key to fetch weather data.

+

+ We are using{" "} + + OpenWeatherMap + {" "} + API for fetching weather data. +