Skip to content

Commit

Permalink
Fix linting and accessibility issues (#445)
Browse files Browse the repository at this point in the history
Signed-off-by: lucferbux <[email protected]>
  • Loading branch information
lucferbux authored Oct 1, 2024
1 parent edbc250 commit 0c369a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import * as React from 'react';
import {
TextInput,
ToolbarFilter,
ToolbarGroup,
ToolbarItem,
} from '@patternfly/react-core';
import { TextInput, ToolbarFilter, ToolbarGroup, ToolbarItem } from '@patternfly/react-core';
import { FilterIcon } from '@patternfly/react-icons';
import { useNavigate } from 'react-router-dom';
import { RegisteredModel } from '~/app/types';
Expand Down Expand Up @@ -104,6 +99,7 @@ const RegisteredModelListView: React.FC<RegisteredModelListViewProps> = ({
}}
style={{ minWidth: '200px' }}
data-testid="registered-model-table-search"
aria-label="Search"
/>
<fieldset aria-hidden="true" className="form-fieldset">
<legend className="form-fieldset-legend">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const RegisteredModelTable: React.FC<RegisteredModelTableProps> = ({
columns={rmColumns}
toolbarContent={toolbarContent}
defaultSortColumn={2}
enablePagination='compact'
enablePagination="compact"
emptyTableView={<DashboardEmptyTableView onClearFilters={clearFilters} />}
rowRenderer={(rm) => (
<RegisteredModelTableRow key={rm.name} registeredModel={rm} refresh={refresh} />
Expand Down
2 changes: 1 addition & 1 deletion clients/ui/frontend/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter as Router } from 'react-router-dom';
import App from './app/App';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import App from './app/App';
import { BrowserStorageContextProvider } from './components/browserStorage/BrowserStorageContext';

const theme = createTheme({ cssVariables: true });
Expand Down

0 comments on commit 0c369a0

Please sign in to comment.