set weather select to widget
This commit is contained in:
parent
96a0d6d541
commit
b8c1684f9a
File diff suppressed because one or more lines are too long
@ -220,7 +220,17 @@ const Dashboard = () => {
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<div className="mb-4">
|
||||
|
||||
|
||||
{weather && (
|
||||
<div className={`${corners !== 'rounded-full' ? corners : 'rounded-3xl'} dark:bg-dark-900 ${cardsStyle} dark:border-dark-700 p-6`}>
|
||||
<div className='flex justify-between items-center'>
|
||||
<div>
|
||||
<div className='text-lg leading-tight text-gray-500 dark:text-gray-400'>
|
||||
Weather
|
||||
</div>
|
||||
|
||||
<div className="mb-4 w-full">
|
||||
<label htmlFor="city-select" className="block text-sm font-medium text-gray-700 dark:text-gray-300">
|
||||
{t('pages.dashboard.selectCity', { defaultValue: 'Select City' })}
|
||||
</label>
|
||||
@ -235,14 +245,6 @@ const Dashboard = () => {
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
{weather && (
|
||||
<div className={`${corners !== 'rounded-full' ? corners : 'rounded-3xl'} dark:bg-dark-900 ${cardsStyle} dark:border-dark-700 p-6`}>
|
||||
<div className='flex justify-between items-center'>
|
||||
<div>
|
||||
<div className='text-lg leading-tight text-gray-500 dark:text-gray-400'>
|
||||
Weather
|
||||
</div>
|
||||
<div className='text-3xl leading-tight font-semibold'>
|
||||
{weather.temp}°C
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user