Added unused imports and vars and fixed lint (#929)

This commit is contained in:
Lucas Bordeau
2023-07-26 02:18:25 +02:00
committed by GitHub
parent c0700c9b20
commit b52745533a
17 changed files with 89 additions and 27 deletions

View File

@ -1,4 +1,3 @@
import React from 'react';
import styled from '@emotion/styled';
import { Checkbox } from '@/ui/input/components/Checkbox';
@ -19,7 +18,8 @@ export const SelectAllCheckbox = () => {
const checked = allRowsSelectedStatus === 'all';
const indeterminate = allRowsSelectedStatus === 'some';
function onChange(value: boolean) {
function onChange() {
selectAllRows();
}

View File

@ -36,7 +36,6 @@ export function EditableCellDoubleTextEditMode({
secondValue,
firstValuePlaceholder,
secondValuePlaceholder,
onChange,
onSubmit,
onCancel,
}: OwnProps) {

View File

@ -7,20 +7,16 @@ import { EditableCell } from '../components/EditableCell';
type OwnProps = {
placeholder?: string;
value: string;
onChange?: (newValue: string) => void;
editModeHorizontalAlign?: 'left' | 'right';
loading?: boolean;
onSubmit?: (newText: string) => void;
onCancel?: () => void;
};
export function EditableCellText({
value,
placeholder,
onChange,
editModeHorizontalAlign,
loading,
onCancel,
onSubmit,
}: OwnProps) {
return (