TagSpaces is an offline, open source, document manager with tagging support
fix: added theme support for search inline component
Ilian Sapundshiev392dbe09f0db
diff --git a/app/components/SearchInline.tsx b/app/components/SearchInline.tsxindex c66953e2d..08bd6f941 100644--- a/app/components/SearchInline.tsx+++ b/app/components/SearchInline.tsx@@ -19,7 +19,7 @@import React, { useEffect, useReducer, useRef, useState } from 'react';import { bindActionCreators } from 'redux';import { connect } from 'react-redux';-import { withStyles } from '@material-ui/core/styles';+import { withStyles, Theme, createStyles } from '@material-ui/core/styles';import ClearSearchIcon from '@material-ui/icons/Clear';import Button from '@material-ui/core/Button';import IconButton from '@material-ui/core/IconButton';@@ -59,6 +59,27 @@ interface Props {showUnixHiddenEntries: boolean;}+const MeainSearchField = withStyles((theme: Theme) =>+ createStyles({+ root: {+ '& input': {+ padding: 7+ },+ '& .MuiInputBase-root': {+ borderRadius: 7+ },+ overflow: 'hidden',+ '&:hover': {+ backgroundColor: theme.palette.background.paper+ // boxShadow: `${alpha(theme.palette.primary.main, 0.25)} 0 0 0 0.2rem`+ }+ // '&:active': {+ // backgroundColor: theme.palette.background.paper+ // }+ }+ })+)(TextField);+const SearchInline = (props: Props) => {const [, forceUpdate] = useReducer(x => x + 1, 0);const textQuery = useRef<string>(props.searchQuery.textQuery);@@ -263,21 +284,6 @@ const SearchInline = (props: Props) => {}};- const MeainSearchField = withStyles({- root: {- '& input': {- padding: 7- },- '& .MuiInputBase-root': {- borderRadius: 7- },- overflow: 'hidden',- '&:hover': {- backgroundColor: '#fff'- }- }- })(TextField);-const { indexing } = props;return (