Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: wrong color on a button in mobile navigation

Ilian Sapundshievd7aaf2d8afe5
diff --git a/app/components/LocationManager.tsx b/app/components/LocationManager.tsx
index 44511af3f..994382ee1 100644
--- a/app/components/LocationManager.tsx
+++ b/app/components/LocationManager.tsx
@@ -55,8 +55,8 @@ const CreateEditLocationDialogAsync = props => (
);
interface Props {
- classes: any;
- style: any;
+ classes?: any;
+ style?: any;
locations: Array<TS.Location>;
hideDrawer: () => void;
openURLExternally: (path: string) => void;
diff --git a/app/components/MobileNavigation.tsx b/app/components/MobileNavigation.tsx
index 4ba2a80b9..bea800c2a 100644
--- a/app/components/MobileNavigation.tsx
+++ b/app/components/MobileNavigation.tsx
@@ -60,10 +60,6 @@ const styles: any = (theme: any) => ({
textAlign: 'center',
backgroundColor: theme.palette.background.default
},
- buttonIcon: {
- color: '#d6d6d6' // theme.palette.text.primary
- },
- button: {},
selectedButton: {
backgroundColor: '#880E4F'
}
@@ -169,7 +165,7 @@ const MobileNavigation = (props: Props) => {
}}
style={{ marginTop: -15, marginRight: 2 }}
>
- <SettingsIcon className={classes.buttonIcon} />
+ <SettingsIcon />
</IconButton>
</Tooltip>
<ToggleButtonGroup exclusive>
@@ -184,7 +180,7 @@ const MobileNavigation = (props: Props) => {
}
data-tid="locationManager"
>
- <LocationsIcon className={classes.buttonIcon} />
+ <LocationsIcon />
</ToggleButton>
</Tooltip>
<Tooltip title={i18n.t('core:tagLibrary')}>
@@ -198,7 +194,7 @@ const MobileNavigation = (props: Props) => {
: classes.button
}
>
- <TagLibraryIcon className={classes.buttonIcon} />
+ <TagLibraryIcon />
</ToggleButton>
</Tooltip>
<Tooltip title={i18n.t('core:searchTitle')}>
@@ -212,7 +208,7 @@ const MobileNavigation = (props: Props) => {
: classes.button
}
>
- <SearchIcon className={classes.buttonIcon} />
+ <SearchIcon />
</ToggleButton>
</Tooltip>
<Tooltip title={i18n.t('core:helpFeedback')}>
@@ -226,11 +222,7 @@ const MobileNavigation = (props: Props) => {
: classes.button
}
>
- {user ? (
- <AccountCircleIcon className={classes.buttonIcon} />
- ) : (
- <HelpIcon className={classes.buttonIcon} />
- )}
+ {user ? <AccountCircleIcon /> : <HelpIcon />}
</ToggleButton>
</Tooltip>
</ToggleButtonGroup>
@@ -250,7 +242,7 @@ const MobileNavigation = (props: Props) => {
style={{ marginTop: -15, marginLeft: 2 }}
data-tid="locationManager"
>
- <NewFileIcon color="primary" />
+ <NewFileIcon />
</IconButton>
</Tooltip>
{isProTeaserVisible && (
diff --git a/app/components/TagLibrary.tsx b/app/components/TagLibrary.tsx
index 2baf63e52..adfbc2f56 100644
--- a/app/components/TagLibrary.tsx
+++ b/app/components/TagLibrary.tsx
@@ -68,8 +68,8 @@ import { getLocations } from '-/reducers/locations';
import { Pro } from '-/pro';
interface Props {
- classes: any;
- style: any;
+ classes?: any;
+ style?: any;
isReadOnlyMode: boolean;
tagTextColor: string;
tagBackgroundColor: string;