refactor: unify theme (#1303)

This commit is contained in:
Himself65
2023-03-04 01:36:20 -06:00
committed by GitHub
parent fe0d78b2d6
commit 4e9f0c97a1
43 changed files with 779 additions and 543 deletions
@@ -98,4 +98,4 @@ export const StyledMoreVerticalDiv = styled('div')(() => {
};
});
export const StyledMoreVerticalButton = styled(StyledMoreVerticalDiv)();
export const StyledMoreVerticalButton = styled(StyledMoreVerticalDiv)``;
@@ -9,7 +9,7 @@ export const StyledInput = styled(Input)(({ theme }) => {
};
});
export const StyledWorkspaceInfo = styled.div(({ theme }) => {
export const StyledWorkspaceInfo = styled('div')(({ theme }) => {
return {
...displayFlex('flex-start', 'center'),
fontSize: '20px',
@@ -43,7 +43,7 @@ export const WorkspaceSettingTagItem = styled('li')<{ isActive?: boolean }>(
}
);
export const StyledSettingKey = styled.div(({ theme }) => {
export const StyledSettingKey = styled('div')(({ theme }) => {
return {
width: '140px',
fontSize: theme.font.base,
@@ -65,7 +65,7 @@ export const StyledWorkspaceName = styled('span')(({ theme }) => {
};
});
export const StyledIndicator = styled.div(({ theme }) => {
export const StyledIndicator = styled('div')(({ theme }) => {
return {
height: '2px',
background: theme.colors.primaryColor,
@@ -76,14 +76,14 @@ export const StyledIndicator = styled.div(({ theme }) => {
};
});
export const StyledTabButtonWrapper = styled.div(() => {
export const StyledTabButtonWrapper = styled('div')(() => {
return {
display: 'flex',
position: 'relative',
};
});
// export const StyledDownloadCard = styled.div<{ active?: boolean }>(
// export const StyledDownloadCard = styled('div')<{ active?: boolean }>(
// ({ theme, active }) => {
// return {
// width: '240px',
@@ -105,7 +105,7 @@ export const StyledTabButtonWrapper = styled.div(() => {
// };
// }
// );
// export const StyledDownloadCardDes = styled.div(({ theme }) => {
// export const StyledDownloadCardDes = styled('div')(({ theme }) => {
// return {
// fontSize: theme.font.sm,
// color: theme.colors.iconColor,