fix: remove mui theme provider (#2055)

This commit is contained in:
Himself65
2023-04-20 14:31:54 -05:00
committed by GitHub
parent d24c43e750
commit 0a0f825a15
9 changed files with 66 additions and 138 deletions

View File

@@ -62,7 +62,7 @@ export const StyledCard = styled('div')<{
...displayFlex('flex-start', 'flex-start'),
marginBottom: '24px',
transition: 'background .2s',
background: theme.palette.mode === 'light' ? '#FFF' : '#2C2C2C',
background: 'var(--affine-background-primary-color)',
':hover': {
background: 'var(--affine-hover-color)',
'.add-icon': {

View File

@@ -41,28 +41,6 @@ export const StyleWorkspaceTitle = styled('div')(({ theme }) => {
};
});
export const StyledCard = styled('div')<{
active?: boolean;
}>(({ theme, active }) => {
const borderColor = active ? 'var(--affine-primary-color)' : 'transparent';
return {
width: '310px',
height: '124px',
cursor: 'pointer',
padding: '16px',
boxShadow: '0px 0px 8px rgba(0, 0, 0, 0.1)',
borderRadius: '12px',
border: `1px solid ${borderColor}`,
...displayFlex('flex-start', 'flex-start'),
marginBottom: '24px',
transition: 'background .2s',
background: theme.palette.mode === 'light' ? '#FFF' : '#2C2C2C',
':hover': {
background: 'var(--affine-hover-color)',
},
};
});
export const StyledCreateWorkspaceCard = styled('div')(({ theme }) => {
return {
width: '310px',