Fixed addTask bar background color issues

This commit is contained in:
Dmitriy Shishkov 2021-10-17 18:45:53 +03:00
parent 0b730b8b2d
commit 0616cde993
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060
2 changed files with 12 additions and 2 deletions

View File

@ -10,8 +10,16 @@ import store from "./store";
export const App = () => { export const App = () => {
return ( return (
<Provider store={store}> <Provider store={store}>
<Layout appBar={<AppBar />} title="My tasks" content={<TodoList />} /> <Layout
appBar={<AppBar />}
title="My tasks"
content={
<>
<TodoList />
<AddTask /> <AddTask />
</>
}
/>
</Provider> </Provider>
); );
}; };

View File

@ -51,6 +51,8 @@ export const AddTask: React.FC = () => {
top: (theme) => "-" + theme.spacing(2), top: (theme) => "-" + theme.spacing(2),
left: 0, left: 0,
background: (theme) => theme.palette.background.paper, background: (theme) => theme.palette.background.paper,
backgroundImage:
"linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15))",
}} }}
/> />
<InputBase <InputBase