From b98137ab304e8068484926eb31b77bd727a6407d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 23 May 2022 08:49:58 -0700 Subject: Use standard icon button size --- modern/src/common/components/NavBar.js | 1 - modern/src/common/components/PageLayout.js | 4 ++-- modern/src/login/LoginPage.js | 5 +---- modern/src/main/MainPage.js | 10 +++------- modern/src/main/StatusCard.js | 7 +------ modern/src/other/EventPage.js | 2 +- modern/src/other/GeofencesPage.js | 2 +- modern/src/other/PositionPage.js | 2 +- modern/src/other/ReplayPage.js | 18 +++++------------- modern/src/settings/UserPage.js | 1 - modern/src/settings/components/EditAttributesView.js | 5 ++--- 11 files changed, 17 insertions(+), 40 deletions(-) diff --git a/modern/src/common/components/NavBar.js b/modern/src/common/components/NavBar.js index 09560176..a1a73fdf 100644 --- a/modern/src/common/components/NavBar.js +++ b/modern/src/common/components/NavBar.js @@ -8,7 +8,6 @@ const Navbar = ({ setOpenDrawer, title }) => ( setOpenDrawer(true)} diff --git a/modern/src/common/components/PageLayout.js b/modern/src/common/components/PageLayout.js index 5360a554..17567fb1 100644 --- a/modern/src/common/components/PageLayout.js +++ b/modern/src/common/components/PageLayout.js @@ -81,7 +81,7 @@ const PageLayout = ({ menu, breadcrumbs, children }) => { >
- navigate('/')}> + navigate('/')}> @@ -106,7 +106,7 @@ const PageLayout = ({ menu, breadcrumbs, children }) => { - setOpenDrawer(true)}> + setOpenDrawer(true)}> diff --git a/modern/src/login/LoginPage.js b/modern/src/login/LoginPage.js index 8e5467ac..8bef8b07 100644 --- a/modern/src/login/LoginPage.js +++ b/modern/src/login/LoginPage.js @@ -89,10 +89,7 @@ const LoginPage = () => { return ( - window.localStorage.setItem('legacyApp', true) || window.location.replace('/')} - > + window.localStorage.setItem('legacyApp', true) || window.location.replace('/')}> diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index 7235d1b4..059d7043 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -167,7 +167,7 @@ const MainPage = () => { {!desktop && ( - + )} @@ -179,15 +179,11 @@ const MainPage = () => { onChange={(event) => setSearchKeyword(event.target.value)} placeholder={t('sharedSearchDevices')} /> - navigate('/settings/device')} - disabled={deviceReadonly} - > + navigate('/settings/device')} disabled={deviceReadonly}> {desktop && ( - + )} diff --git a/modern/src/main/StatusCard.js b/modern/src/main/StatusCard.js index 37e4a1d1..ec33efa2 100644 --- a/modern/src/main/StatusCard.js +++ b/modern/src/main/StatusCard.js @@ -115,7 +115,7 @@ const StatusCard = ({ deviceId, onClose }) => { )} action={( - + )} @@ -148,35 +148,30 @@ const StatusCard = ({ deviceId, onClose }) => { navigate(`/position/${position.id}`)} disabled={!position} > navigate('/replay')} disabled={!position} > navigate(`/settings/command-send/${deviceId}`)} disabled={readonly} > navigate(`/settings/device/${deviceId}`)} disabled={deviceReadonly} > setRemoving(true)} disabled={deviceReadonly} className={classes.negative} diff --git a/modern/src/other/EventPage.js b/modern/src/other/EventPage.js index d2f12ed1..f4427ca9 100644 --- a/modern/src/other/EventPage.js +++ b/modern/src/other/EventPage.js @@ -61,7 +61,7 @@ const EventPage = () => {
- navigate('/')}> + navigate('/')}> {t('positionEvent')} diff --git a/modern/src/other/GeofencesPage.js b/modern/src/other/GeofencesPage.js index 6f60ce42..6706ec98 100644 --- a/modern/src/other/GeofencesPage.js +++ b/modern/src/other/GeofencesPage.js @@ -66,7 +66,7 @@ const GeofencesPage = () => { classes={{ paper: classes.drawerPaper }} >
- navigate(-1)}> + navigate(-1)}> diff --git a/modern/src/other/PositionPage.js b/modern/src/other/PositionPage.js index 2c755a5a..61c40902 100644 --- a/modern/src/other/PositionPage.js +++ b/modern/src/other/PositionPage.js @@ -74,7 +74,7 @@ const PositionPage = () => {
- navigate(-1)}> + navigate(-1)}> diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index 4b3c4c09..1c82c913 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -147,13 +147,13 @@ const ReplayPage = () => {
- navigate('/')}> + navigate('/')}> {t('reportReplay')} {!expanded && ( - setExpanded(true)}> + setExpanded(true)}> @@ -177,21 +177,13 @@ const ReplayPage = () => { />
{`${index + 1}/${positions.length}`} - setIndex((index) => index - 1)} - disabled={playing} - > + setIndex((index) => index - 1)} disabled={playing}> - setPlaying(!playing)} size="large"> + setPlaying(!playing)}> {playing ? : } - setIndex((index) => index + 1)} - disabled={playing} - > + setIndex((index) => index + 1)} disabled={playing}> {formatTime(positions[index].fixTime)} diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js index d279fce3..48769557 100644 --- a/modern/src/settings/UserPage.js +++ b/modern/src/settings/UserPage.js @@ -218,7 +218,6 @@ const UserPage = () => { endAdornment={( { const token = [...Array(30)].map(() => Math.random().toString(36)[2]).join(''); setItem({ ...item, token }); diff --git a/modern/src/settings/components/EditAttributesView.js b/modern/src/settings/components/EditAttributesView.js index d714c489..e6e1ddf0 100644 --- a/modern/src/settings/components/EditAttributesView.js +++ b/modern/src/settings/components/EditAttributesView.js @@ -166,7 +166,7 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { )} label={getAttributeName(key, subtype)} /> - deleteAttribute(key)}> + deleteAttribute(key)}> @@ -181,7 +181,7 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { onChange={(e) => updateAttribute(key, e.target.value, type, subtype)} endAdornment={( - deleteAttribute(key)}> + deleteAttribute(key)}> @@ -191,7 +191,6 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { ); })}