mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-21 15:25:22 +03:00
make login form use dark/light theme
This commit is contained in:
parent
c28ed94ca0
commit
86d0fd04e6
1 changed files with 52 additions and 51 deletions
|
@ -8,7 +8,7 @@ const LoginFormBox = styled(Box)(({ theme }) => ({
|
|||
alignItems: "center",
|
||||
justifyContent: "flex-start",
|
||||
background: "url(./images/floating-cogs.svg)",
|
||||
backgroundColor: "#f9f9f9",
|
||||
backgroundColor: theme.palette.mode === 'dark' ? theme.palette.background.default : theme.palette.background.paper,
|
||||
backgroundRepeat: "no-repeat",
|
||||
backgroundSize: "cover",
|
||||
|
||||
|
@ -53,6 +53,7 @@ const LoginFormBox = styled(Box)(({ theme }) => ({
|
|||
marginBottom: "1rem",
|
||||
marginLeft: "0.5rem",
|
||||
},
|
||||
}));
|
||||
}
|
||||
));
|
||||
|
||||
export default LoginFormBox;
|
||||
|
|
Loading…
Reference in a new issue