← All changes
|
js/components/common/LoadingStatusNotices.tsx
+2
-3
3.10.1
→
4.0.0-beta.2
View file →
| @@ -1,12 +1,11 @@ | ||
| 1 | 1 | import React from 'react' |
| 2 | 2 | import { __ } from '@wordpress/i18n' |
| 3 | 3 | import { Notice } from './Notice' |
| 4 | +import type { LoadingStatus } from '../../hooks/useFetchData' | |
| 4 | 5 | import type { ReactNode } from 'react' |
| 5 | 6 | |
| 6 | -export interface LoadingStatusNoticesProps { | |
| 7 | - isLoading: boolean | |
| 8 | - errorMessage: string | undefined | |
| 7 | +export interface LoadingStatusNoticesProps extends LoadingStatus { | |
| 9 | 8 | loadingNotice: ReactNode |
| 10 | 9 | noticeLabel: string |
| 11 | 10 | } |
| 12 | 11 | |