Skip to content

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

polish: correcting wrong text color in search area

Ilian Sapundshievb0441c66845f
diff --git a/app/components/Search.tsx b/app/components/Search.tsx
index 2b437c31f..9183fd67d 100644
--- a/app/components/Search.tsx
+++ b/app/components/Search.tsx
@@ -75,6 +75,7 @@ import { AppConfig } from '-/config';
interface Props {
classes: any;
style?: any;
+ theme?: any;
searchLocationIndex: (searchQuery: SearchQuery) => void;
createLocationsIndexes: () => void;
searchAllLocations: (searchQuery: SearchQuery) => void;
@@ -495,7 +496,13 @@ const Search = React.memo((props: Props) => {
name="forceIndexing"
/>
}
- label="Force reindexing"
+ label={
+ <Typography
+ style={{ padding: 15, color: props.theme.palette.text.primary }}
+ >
+ {i18n.t('forceReindexing')}
+ </Typography>
+ }
/>
<br />
<br />
@@ -842,6 +849,6 @@ function mapDispatchToProps(dispatch) {
);
}
-export default withStyles(styles)(
+export default withStyles(styles, { withTheme: true })(
connect(mapStateToProps, mapDispatchToProps)(Search)
);
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index c54af50a0..fa3fdbd9a 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -340,6 +340,7 @@
"sort": "Sort",
"thirdPartyLibs": "Third Party Libraries",
"indexLocation": "Refresh Location Index",
+ "forceReindexing": "Force reindexing",
"readonlyModeSwitch": "Open this location in read-only mode",
"persistIndexSwitch": "Switch to manual index creation with persisted search index",
"createFullTextIndex": "Enable full text search for TXT, MD and HTML files (BETA)",