mirror of
https://github.com/mue/mue.git
synced 2026-07-14 04:24:01 +02:00
fix: author loading before quote
- Make author div not load if quote is empty - photoinformation taking too much of the screen - more transitions and consistent transitions - running prettier across all files Co-authored-by: David Ralph <me@davidcralph.co.uk>
This commit is contained in:
@@ -11,53 +11,53 @@ import {
|
||||
WiThunderstorm,
|
||||
WiSnow,
|
||||
WiFog,
|
||||
} from "react-icons/wi";
|
||||
} from 'react-icons/wi';
|
||||
|
||||
export default function WeatherIcon({ name }) {
|
||||
let icon;
|
||||
|
||||
// name is the openweathermap icon name, see https://openweathermap.org/weather-conditions
|
||||
switch (name) {
|
||||
case "01d":
|
||||
case '01d':
|
||||
icon = <WiDaySunny />;
|
||||
break;
|
||||
case "01n":
|
||||
case '01n':
|
||||
icon = <WiNightClear />;
|
||||
break;
|
||||
case "02d":
|
||||
case '02d':
|
||||
icon = <WiDayCloudy />;
|
||||
break;
|
||||
case "02n":
|
||||
case '02n':
|
||||
icon = <WiNightCloudy />;
|
||||
break;
|
||||
case "03d":
|
||||
case "03n":
|
||||
case '03d':
|
||||
case '03n':
|
||||
icon = <WiCloud />;
|
||||
break;
|
||||
case "04d":
|
||||
case "04n":
|
||||
case '04d':
|
||||
case '04n':
|
||||
icon = <WiCloudy />;
|
||||
break;
|
||||
case "09d":
|
||||
case '09d':
|
||||
icon = <WiDayShowers />;
|
||||
break;
|
||||
case "09n":
|
||||
case '09n':
|
||||
icon = <WiNightShowers />;
|
||||
break;
|
||||
case "10d":
|
||||
case "10n":
|
||||
case '10d':
|
||||
case '10n':
|
||||
icon = <WiRain />;
|
||||
break;
|
||||
case "11d":
|
||||
case "11n":
|
||||
case '11d':
|
||||
case '11n':
|
||||
icon = <WiThunderstorm />;
|
||||
break;
|
||||
case "13d":
|
||||
case "13n":
|
||||
case '13d':
|
||||
case '13n':
|
||||
icon = <WiSnow />;
|
||||
break;
|
||||
case "50d":
|
||||
case "50n":
|
||||
case '50d':
|
||||
case '50n':
|
||||
icon = <WiFog />;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user