0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-10 22:22:45 -05:00

refactor(console): remove unused prop

This commit is contained in:
Gao Sun 2023-10-19 16:39:46 +08:00
parent 3bd169c297
commit b18df612dd
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
3 changed files with 2 additions and 10 deletions

View file

@ -34,6 +34,7 @@
.headerTable {
background-color: var(--color-layer-1);
border-radius: 12px 12px 0 0;
padding: 0 _.unit(3);
thead {
tr {
@ -54,6 +55,7 @@
.bodyTable {
overflow-y: auto;
padding: 0 _.unit(3) _.unit(3);
background-color: var(--color-layer-1);
border-radius: 0 0 12px 12px;

View file

@ -37,12 +37,6 @@ export type Props<
errorMessage?: string;
hasBorder?: boolean;
onRetry?: () => void;
/**
* The padding of the table container in px, excluding top padding.
*
* @default 12
*/
padding?: number;
/** A footer that will be rendered on the bottom-left of the table. */
footer?: ReactNode;
};
@ -69,7 +63,6 @@ function Table<
errorMessage,
hasBorder,
onRetry,
padding = 12,
footer,
}: Props<TFieldValues, TName>) {
const totalColspan = columns.reduce((result, { colSpan }) => {
@ -95,7 +88,6 @@ function Table<
filter && styles.hideTopBorderRadius,
headerTableClassName
)}
style={{ padding: `0 ${padding}px` }}
>
<thead>
<tr>
@ -113,7 +105,6 @@ function Table<
isEmpty && styles.empty,
bodyTableWrapperClassName
)}
style={{ padding: `0 ${padding}px ${padding}px` }}
>
<table>
<tbody>

View file

@ -44,7 +44,6 @@ function TemplateTable<
<Table
hasBorder
className={styles.table}
padding={0}
rowGroups={[
{
key: 'data',