Skip to content

Commit 930eadc

Browse files
committed
fix public images url path 2nd attempt
1 parent 2ac2dca commit 930eadc

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/Search.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export default function Search({ setLocation, setApiError }: Props) {
6565
setLocationList(locations.data);
6666
setHighlightedIndex(0);
6767
} catch (error) {
68-
console.error("Error fetching location data:", error);
6968
setLocationError(
7069
error instanceof Error ? error.message : String(error),
7170
);

src/currentWeather/CurrentForecast.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export default function CurrentForecast({
1818
}: Props) {
1919
return (
2020
<>
21-
<div className="flex flex-col gap-4 rounded-[20px] bg-[url(./images/bg-today-small.svg)] bg-cover py-[41px] md:flex-row md:justify-between md:bg-[url(./images/bg-today-large.svg)] md:px-6 md:py-[83px]">
21+
<div
22+
className={`flex flex-col gap-4 rounded-[20px] bg-[url(/fem_weather_app/images/bg-today-small.svg)] bg-cover py-[41px] md:flex-row md:justify-between md:bg-[url(/fem_weather_app/images/bg-today-large.svg)] md:px-6 md:py-[83px]`}
23+
>
2224
<div className="flex flex-col items-center gap-3 md:items-start md:justify-center">
2325
<h2 className="text-preset-4">
2426
{name}, {country}

src/skeletons/CurrentSkeleton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import LoadingDots from "../assets/images/icon-loading-dots.svg";
33
export default function CurrentSkeleton() {
44
return (
55
<>
6-
<div className="text-preset-6 flex h-[286px] flex-col items-center justify-center gap-3.5 rounded-[20px] bg-neutral-800 bg-[url(./images/bg-loading-large.svg)] bg-contain text-neutral-200">
6+
<div className="text-preset-6 flex h-[286px] flex-col items-center justify-center gap-3.5 rounded-[20px] bg-neutral-800 bg-[url(/fem_weather_app/images/bg-loading-large.svg)] bg-contain text-neutral-200">
77
<img src={LoadingDots} alt="Loading " className="animate-spin-x" />
88
<div>Loading</div>
99
</div>

0 commit comments

Comments
 (0)