|
1 | 1 | /* eslint-disable no-nested-ternary */ |
2 | | -import React, { useEffect, useState, useRef, useMemo } from 'react'; |
| 2 | +import { FunctionComponent, useEffect, useState, useRef, useMemo } from 'react'; |
3 | 3 | import { Drawer, DrawerActions, DrawerCloseButton, DrawerContent, DrawerContentBody, DrawerHead, DrawerPanelContent, Title, Content, EmptyState, EmptyStateBody, EmptyStateFooter, EmptyStateActions, Button, } from '@patternfly/react-core'; |
4 | 4 | import { ActionsColumn, Tbody, Td, ThProps, Tr } from '@patternfly/react-table'; |
5 | 5 | import { BulkSelect, BulkSelectValue } from '@patternfly/react-component-groups/dist/dynamic/BulkSelect'; |
@@ -94,7 +94,7 @@ interface RepositoryDetailProps { |
94 | 94 | setSelectedRepo: React.Dispatch<React.SetStateAction<Repository | undefined>>; |
95 | 95 | } |
96 | 96 |
|
97 | | -const RepositoryDetail: React.FunctionComponent<RepositoryDetailProps> = ({ selectedRepo, setSelectedRepo }) => { |
| 97 | +const RepositoryDetail: FunctionComponent<RepositoryDetailProps> = ({ selectedRepo, setSelectedRepo }) => { |
98 | 98 | const context = useDataViewEventsContext(); |
99 | 99 |
|
100 | 100 | useEffect(() => { |
@@ -146,7 +146,7 @@ const rowActions = [ |
146 | 146 | } |
147 | 147 | ]; |
148 | 148 |
|
149 | | -const RepositoriesTable: React.FunctionComponent<RepositoriesTableProps> = ({ selectedRepo = undefined }) => { |
| 149 | +const RepositoriesTable: FunctionComponent<RepositoriesTableProps> = ({ selectedRepo = undefined }) => { |
150 | 150 | const { filters, onSetFilters, clearAllFilters } = useDataViewFilters<RepositoryFilters>({ initialFilters: { name: '', branch: '', workspace: [] } }); |
151 | 151 |
|
152 | 152 | const pagination = useDataViewPagination({ perPage: 5 }); |
@@ -255,7 +255,7 @@ const RepositoriesTable: React.FunctionComponent<RepositoriesTableProps> = ({ se |
255 | 255 | ); |
256 | 256 | }; |
257 | 257 |
|
258 | | -export const BasicExample: React.FunctionComponent = () => { |
| 258 | +export const BasicExample: FunctionComponent = () => { |
259 | 259 | const [ selectedRepo, setSelectedRepo ] = useState<Repository>(); |
260 | 260 | const drawerRef = useRef<HTMLDivElement>(null); |
261 | 261 |
|
|
0 commit comments