Fix coding style

This commit is contained in:
2023-10-26 16:57:09 +07:00
parent bd407bb933
commit b0703ffdd3
3 changed files with 25 additions and 14 deletions
+7 -5
View File
@@ -1,28 +1,30 @@
export interface IMenusContext {
interface IMenusContext {
openId?: string;
close?: () => void;
open?: React.Dispatch<React.SetStateAction<string>>;
}
export interface IButton {
interface IButton {
children?: string;
icon?: JSX.Element;
onClick?: () => void;
}
export interface ITable {
interface ITable {
columns?: string;
children: React.ReactNode;
}
export interface ITableBody<T> {
interface ITableBody<T> {
data?: T[];
render?: (value: T) => JSX.Element;
}
export interface IDialogProps {
interface IDialogProps {
title?: string;
children?: JSX.Element[] | JSX.Element;
onClose?: () => void;
ref?: React.MutableRefObject<HTMLDialogElement | undefined>;
}
export type { IMenusContext, IButton, ITable, ITableBody, IDialogProps };