From cef6fcb543d8fe9d9c809e6479d45083f852f0a9 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Fri, 17 Apr 2020 10:23:21 +0200 Subject: [PATCH] Set FilterBar background color to #fff --- README.md | 3 ++- client/src/components/FilterBar.tsx | 17 +++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fb4ca2d..bb1b2e4 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,5 @@ - [ ] use dtoRequest for PutProjects - [ ] render avatarlist after UserModal Update - [x] Form validators -- [ ] Azure +- [x] Azure +- [ ] Refactor TabPanels code diff --git a/client/src/components/FilterBar.tsx b/client/src/components/FilterBar.tsx index c42c1be..bae32cb 100644 --- a/client/src/components/FilterBar.tsx +++ b/client/src/components/FilterBar.tsx @@ -16,22 +16,25 @@ const useStyles = makeStyles((theme: Theme) => root: { "& > *": { margin: theme.spacing(1), - width: "25ch" - } + width: "25ch", + }, }, margin: { - margin: theme.spacing(1) - } + margin: theme.spacing(1), + }, + filter: { + backgroundColor: "#fff", + }, }) ); export const FilterBar: FC = ({ filterText, - handleChange + handleChange, // clearFilterText }) => { const { url } = useRouteMatch(); - const placeholder: string = url.split("/")[3] || "users"; + const placeholder: string = url.split("/")[3] || "elements"; const classes = useStyles(); return (
@@ -44,6 +47,8 @@ export const FilterBar: FC = ({ size="small" value={filterText} onChange={handleChange} + color="primary" + className={classes.filter} />