Skip to content

Commit

Permalink
Fix the font issue in acc table
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Mar 20, 2024
1 parent b3a1aa0 commit 204d5e1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/

import {
EuiBasicTableColumn,
EuiButton,
EuiEmptyPrompt,
EuiFlexGroup,
Expand All @@ -15,6 +14,7 @@ import {
EuiLoadingSpinner,
EuiPanel,
EuiSpacer,
EuiTableFieldDataColumnType,
EuiText,
} from '@elastic/eui';
import React, { useCallback, useEffect, useState } from 'react';
Expand Down Expand Up @@ -276,27 +276,27 @@ export const AccelerationTable = ({
default:
label = 'INVALID TYPE';
}
return <EuiText>{label}</EuiText>;
return <EuiText size="s">{label}</EuiText>;
},
},
{
field: 'database',
name: 'Database',
sortable: true,
render: (database: string) => <EuiText>{database}</EuiText>,
render: (database: string) => <EuiText size="s">{database}</EuiText>,
},
{
field: 'table',
name: 'Table',
sortable: true,
render: (table: string) => <EuiText>{table || '-'}</EuiText>,
render: (table: string) => <EuiText size="s">{table || '-'}</EuiText>,
},
{
field: 'refreshType',
name: 'Refresh Type',
sortable: true,
render: (autoRefresh: boolean, acceleration: CachedAcceleration) => {
return <EuiText>{acceleration.autoRefresh ? 'Auto refresh' : 'Manual'}</EuiText>;
return <EuiText size="s">{acceleration.autoRefresh ? 'Auto refresh' : 'Manual'}</EuiText>;
},
},
{
Expand All @@ -314,7 +314,7 @@ export const AccelerationTable = ({
name: 'Actions',
actions: tableActions,
},
] as Array<EuiBasicTableColumn<any>>;
] as Array<EuiTableFieldDataColumnType<any>>;

Check warning on line 317 in public/components/datasources/components/manage/accelerations/acceleration_table.tsx

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type

const pagination = {
initialPageSize: 10,
Expand Down

0 comments on commit 204d5e1

Please sign in to comment.