Various cleanup
This commit is contained in:
parent
90dec929f4
commit
4326f6cf91
3 changed files with 1 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { Flex, FlexProps } from '@mantine/core';
|
import { Flex, FlexProps } from '@mantine/core';
|
||||||
import { motion } from 'framer-motion';
|
import { motion } from 'framer-motion';
|
||||||
import { useEffect, useRef } from 'react';
|
import { useRef } from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { useShouldPadTitlebar } from '/@/renderer/hooks';
|
import { useShouldPadTitlebar } from '/@/renderer/hooks';
|
||||||
|
|
||||||
|
@ -71,11 +71,6 @@ export const PageHeader = ({
|
||||||
const ref = useRef(null);
|
const ref = useRef(null);
|
||||||
const padRight = useShouldPadTitlebar();
|
const padRight = useShouldPadTitlebar();
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
const rootElement = document.querySelector(':root') as HTMLElement;
|
|
||||||
rootElement?.style?.setProperty('--header-opacity', '0');
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container
|
<Container
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
|
|
@ -42,8 +42,6 @@ export const TablePagination = ({
|
||||||
tableRef.current?.api.paginationGoToPage(newPage);
|
tableRef.current?.api.paginationGoToPage(newPage);
|
||||||
setPagination?.({ currentPage: newPage });
|
setPagination?.({ currentPage: newPage });
|
||||||
setIdPagination?.(id || '', { currentPage: newPage });
|
setIdPagination?.(id || '', { currentPage: newPage });
|
||||||
|
|
||||||
console.log('newPage', newPage);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleGoSubmit = goToForm.onSubmit((values) => {
|
const handleGoSubmit = goToForm.onSubmit((values) => {
|
||||||
|
|
|
@ -237,7 +237,6 @@ export const AlbumDetailContent = ({ tableRef }: AlbumDetailContentProps) => {
|
||||||
rowHeight={60}
|
rowHeight={60}
|
||||||
rowSelection="multiple"
|
rowSelection="multiple"
|
||||||
onCellContextMenu={handleContextMenu}
|
onCellContextMenu={handleContextMenu}
|
||||||
onColumnResized={() => console.log('resize')}
|
|
||||||
onGridReady={(params) => {
|
onGridReady={(params) => {
|
||||||
params.api.setDomLayout('autoHeight');
|
params.api.setDomLayout('autoHeight');
|
||||||
params.api.sizeColumnsToFit();
|
params.api.sizeColumnsToFit();
|
||||||
|
|
Reference in a new issue