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:
parent
3bd169c297
commit
b18df612dd
3 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -44,7 +44,6 @@ function TemplateTable<
|
|||
<Table
|
||||
hasBorder
|
||||
className={styles.table}
|
||||
padding={0}
|
||||
rowGroups={[
|
||||
{
|
||||
key: 'data',
|
||||
|
|
Loading…
Add table
Reference in a new issue