Various cleanup

This commit is contained in:
jeffvli 2023-01-02 02:05:30 -08:00
parent 90dec929f4
commit 4326f6cf91
3 changed files with 1 additions and 9 deletions

View file

@ -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}

View file

@ -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) => {

View file

@ -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();