chore: enable no-unused vars (#2181)

This commit is contained in:
Himself65
2023-04-28 00:41:06 -05:00
committed by GitHub
parent b6ca2aa063
commit 70fbbb39c1
70 changed files with 206 additions and 225 deletions

View File

@@ -23,22 +23,20 @@ export const StyledHeaderContainer = styled('div')<{
},
};
});
export const StyledHeader = styled('div')<{ hasWarning: boolean }>(
({ theme }) => {
return {
flexShrink: 0,
height: '52px',
width: '100%',
padding: '0 20px',
...displayFlex('space-between', 'center'),
background: 'var(--affine-background-primary-color)',
zIndex: 99,
position: 'relative',
};
}
);
export const StyledHeader = styled('div')<{ hasWarning: boolean }>(() => {
return {
flexShrink: 0,
height: '52px',
width: '100%',
padding: '0 20px',
...displayFlex('space-between', 'center'),
background: 'var(--affine-background-primary-color)',
zIndex: 99,
position: 'relative',
};
});
export const StyledTitleContainer = styled('div')(({ theme }) => ({
export const StyledTitleContainer = styled('div')(() => ({
width: '100%',
height: '100%',
@@ -82,7 +80,7 @@ export const StyledHeaderRightSide = styled('div')({
});
export const StyledBrowserWarning = styled('div')<{ show: boolean }>(
({ theme, show }) => {
({ show }) => {
return {
backgroundColor: 'var(--affine-background-warning-color)',
color: 'var(--affine-background-warning-color)',
@@ -95,7 +93,7 @@ export const StyledBrowserWarning = styled('div')<{ show: boolean }>(
}
);
export const StyledCloseButton = styled('div')(({ theme }) => {
export const StyledCloseButton = styled('div')(() => {
return {
width: '36px',
height: '36px',
@@ -137,7 +135,7 @@ export const StyledSearchArrowWrapper = styled('div')(() => {
};
});
export const StyledPageListTittleWrapper = styled(StyledTitle)(({ theme }) => {
export const StyledPageListTittleWrapper = styled(StyledTitle)(() => {
return {
fontSize: 'var(--affine-font-base)',
color: 'var(--affine-text-primary-color)',
@@ -148,7 +146,7 @@ export const StyledPageListTittleWrapper = styled(StyledTitle)(({ theme }) => {
},
};
});
export const StyledQuickSearchTipButton = styled('div')(({ theme }) => {
export const StyledQuickSearchTipButton = styled('div')(() => {
return {
...displayFlex('center', 'center'),
marginTop: '12px',