@@ -20,7 +23,7 @@ const DiscoveryCard = ({ id, name, slope, weather, weeklyWeather }: Discovery) =
-
+
{weather.temperature}
{weather.description}
diff --git a/src/widgets/discovery/ui/weather-icon.tsx b/src/widgets/discovery/ui/weather-icon.tsx
deleted file mode 100644
index beb18d1..0000000
--- a/src/widgets/discovery/ui/weather-icon.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import type { Weather } from '@/entities/discovery/model';
-import CloudIcon from '@/shared/icons/cloud';
-import RainIcon from '@/shared/icons/rain';
-import SnowIcon from '@/shared/icons/snow';
-import SunIcon from '@/shared/icons/sun';
-
-const WeatherIcon = ({ weather }: { weather: Weather }) => {
- switch (weather) {
- case 'sun':
- return
;
- case 'cloud':
- return
;
- case 'rain':
- return
;
- case 'snow':
- return
;
- default:
- return null;
- }
-};
-
-export default WeatherIcon;
diff --git a/src/widgets/discovery/ui/weekly-weather.tsx b/src/widgets/discovery/ui/weekly-weather.tsx
index 5442777..7b9dd4d 100644
--- a/src/widgets/discovery/ui/weekly-weather.tsx
+++ b/src/widgets/discovery/ui/weekly-weather.tsx
@@ -1,6 +1,6 @@
+import WeatherIcon from '@/features/discovery/ui/weather-icon';
import type { WeeklyWeather } from '@/entities/discovery/model/model';
import { cn } from '@/shared/lib';
-import WeatherIcon from './weather-icon';
interface WeeklyWeatherProps extends WeeklyWeather {
isToday: boolean;
diff --git a/src/widgets/header/ui/header.tsx b/src/widgets/header/ui/header.tsx
index 275a178..707e9d5 100644
--- a/src/widgets/header/ui/header.tsx
+++ b/src/widgets/header/ui/header.tsx
@@ -1,6 +1,5 @@
import { useRouter } from 'next/navigation';
-import ChevronLeftIcon from '@/shared/icons/chevron-left';
-import ShareIcon from '@/shared/icons/share';
+import { ChevronLeftIcon, ShareIcon } from '@/shared/icons';
import { cn } from '@/shared/lib';
interface HeaderProps {
diff --git a/src/widgets/webcam/ui/webcam-slop-list.tsx b/src/widgets/webcam/ui/webcam-slop-list.tsx
index 3b4e69e..b6d9768 100644
--- a/src/widgets/webcam/ui/webcam-slop-list.tsx
+++ b/src/widgets/webcam/ui/webcam-slop-list.tsx
@@ -14,6 +14,7 @@ interface WebcamSlopListProps {
isOpen: boolean;
isWebcam: boolean;
}[];
+ type?: 'website' | 'app';
selectedSlop: string | null;
setSelectedSlop: React.Dispatch
>;
}
@@ -21,6 +22,7 @@ interface WebcamSlopListProps {
const WebcamSlopList = ({
className,
list,
+ type = 'app',
selectedSlop,
setSelectedSlop,
}: WebcamSlopListProps) => {
@@ -32,6 +34,31 @@ const WebcamSlopList = ({
}
setSelectedSlop(id);
};
+ if (type === 'website') {
+ return (
+
+ {list.map((item) => (
+ - handleSlopClick(item)}
+ >
+
+
{item.name}
+ {item.isWebcam &&
}
+
+
+
+ ))}
+
+ );
+ }
+
return (