mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-14 20:06:27 +03:00
prevent icons flashing white on page reload
This commit is contained in:
@@ -336,6 +336,7 @@ const Dashboard = memo(() => {
|
|||||||
size="small"
|
size="small"
|
||||||
aria-label={LL.RUN_COMMAND()}
|
aria-label={LL.RUN_COMMAND()}
|
||||||
onClick={() => editDashboardValue(di)}
|
onClick={() => editDashboardValue(di)}
|
||||||
|
style={{ backgroundColor: 'transparent' }}
|
||||||
>
|
>
|
||||||
<PlayArrowIcon
|
<PlayArrowIcon
|
||||||
color="primary"
|
color="primary"
|
||||||
@@ -349,6 +350,7 @@ const Dashboard = memo(() => {
|
|||||||
LL.CHANGE_VALUE() + ' ' + LL.VALUE(0)
|
LL.CHANGE_VALUE() + ' ' + LL.VALUE(0)
|
||||||
}
|
}
|
||||||
onClick={() => editDashboardValue(di)}
|
onClick={() => editDashboardValue(di)}
|
||||||
|
style={{ backgroundColor: 'transparent' }}
|
||||||
>
|
>
|
||||||
<EditIcon
|
<EditIcon
|
||||||
color="primary"
|
color="primary"
|
||||||
|
|||||||
@@ -777,6 +777,7 @@ const Devices = memo(() => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
size="small"
|
size="small"
|
||||||
onClick={() => showDeviceValue(dv)}
|
onClick={() => showDeviceValue(dv)}
|
||||||
|
style={{ backgroundColor: 'transparent' }}
|
||||||
>
|
>
|
||||||
{dv.v === '' ? (
|
{dv.v === '' ? (
|
||||||
<PlayArrowIcon color="primary" sx={{ fontSize: 16 }} />
|
<PlayArrowIcon color="primary" sx={{ fontSize: 16 }} />
|
||||||
|
|||||||
Reference in New Issue
Block a user