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"
|
||||
aria-label={LL.RUN_COMMAND()}
|
||||
onClick={() => editDashboardValue(di)}
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
>
|
||||
<PlayArrowIcon
|
||||
color="primary"
|
||||
@@ -349,6 +350,7 @@ const Dashboard = memo(() => {
|
||||
LL.CHANGE_VALUE() + ' ' + LL.VALUE(0)
|
||||
}
|
||||
onClick={() => editDashboardValue(di)}
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
>
|
||||
<EditIcon
|
||||
color="primary"
|
||||
|
||||
@@ -777,6 +777,7 @@ const Devices = memo(() => {
|
||||
<IconButton
|
||||
size="small"
|
||||
onClick={() => showDeviceValue(dv)}
|
||||
style={{ backgroundColor: 'transparent' }}
|
||||
>
|
||||
{dv.v === '' ? (
|
||||
<PlayArrowIcon color="primary" sx={{ fontSize: 16 }} />
|
||||
|
||||
Reference in New Issue
Block a user