fix: remove style in pages

This commit is contained in:
QiShaoXuan
2022-12-13 18:40:05 +08:00
parent 4356c0503e
commit bf02fd26a6
4 changed files with 16 additions and 16 deletions
+14 -1
View File
@@ -1,9 +1,22 @@
import { Header } from '@/components/header';
import { useEditor } from '@/providers/editor-provider';
import { PageList } from '@/components/page-list';
import { StyledWrapper } from '@/pages/page-list/styles';
import { AllPagesIcon } from '@blocksuite/icons';
import { HeaderWrapper } from '@/components/header';
import { styled } from '@/styles';
export const StyledWrapper = styled(HeaderWrapper)(({ theme }) => {
return {
fontSize: theme.font.sm,
color: theme.colors.textColor,
'>svg': {
fontSize: '20px',
marginRight: '12px',
},
};
});
export const All = () => {
const { pageList: allPageList } = useEditor();
return (
@@ -1,7 +1,7 @@
import { Header } from '@/components/header';
import { useEditor } from '@/providers/editor-provider';
import { PageList } from '@/components/page-list';
import { StyledWrapper } from '@/pages/page-list/styles';
import { StyledWrapper } from './all';
import { FavouritesIcon } from '@blocksuite/icons';
export const Favorite = () => {
@@ -1,13 +0,0 @@
import { HeaderWrapper } from '@/components/header';
import { styled } from '@/styles';
export const StyledWrapper = styled(HeaderWrapper)(({ theme }) => {
return {
fontSize: theme.font.sm,
color: theme.colors.textColor,
'>svg': {
fontSize: '20px',
marginRight: '12px',
},
};
});
+1 -1
View File
@@ -1,7 +1,7 @@
import { Header } from '@/components/header';
import { useEditor } from '@/providers/editor-provider';
import { PageList } from '@/components/page-list';
import { StyledWrapper } from './styles';
import { StyledWrapper } from './all';
import { TrashIcon } from '@blocksuite/icons';
export const Trash = () => {
const { pageList: allPageList } = useEditor();