chore: some changeset tweaks a few other changes
Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
@@ -15,16 +15,16 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
CoreErrorDisplayProps,
|
||||
CoreNotFoundErrorPageProps,
|
||||
CoreProgressProps,
|
||||
ErrorDisplayProps,
|
||||
NotFoundErrorPageProps,
|
||||
ProgressProps,
|
||||
} from '../types';
|
||||
import { createSwappableComponent } from './createSwappableComponent';
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const Progress = createSwappableComponent<CoreProgressProps>({
|
||||
export const Progress = createSwappableComponent<ProgressProps>({
|
||||
id: 'core.components.progress',
|
||||
});
|
||||
|
||||
@@ -32,14 +32,14 @@ export const Progress = createSwappableComponent<CoreProgressProps>({
|
||||
* @public
|
||||
*/
|
||||
export const NotFoundErrorPage =
|
||||
createSwappableComponent<CoreNotFoundErrorPageProps>({
|
||||
createSwappableComponent<NotFoundErrorPageProps>({
|
||||
id: 'core.components.notFoundErrorPage',
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const ErrorDisplay = createSwappableComponent<CoreErrorDisplayProps>({
|
||||
export const ErrorDisplay = createSwappableComponent<ErrorDisplayProps>({
|
||||
id: 'core.components.errorDisplay',
|
||||
loader: () => props =>
|
||||
<div data-testid="core.components.errorDisplay">{props.error.message}</div>,
|
||||
|
||||
@@ -32,7 +32,7 @@ export * from './translation';
|
||||
export * from './wiring';
|
||||
|
||||
export type {
|
||||
CoreProgressProps,
|
||||
CoreNotFoundErrorPageProps,
|
||||
CoreErrorDisplayProps,
|
||||
ProgressProps,
|
||||
NotFoundErrorPageProps,
|
||||
ErrorDisplayProps,
|
||||
} from './types';
|
||||
|
||||
@@ -18,15 +18,15 @@ import { ReactNode } from 'react';
|
||||
import { FrontendPlugin } from './wiring';
|
||||
|
||||
/** @public */
|
||||
export type CoreProgressProps = {};
|
||||
export type ProgressProps = {};
|
||||
|
||||
/** @public */
|
||||
export type CoreNotFoundErrorPageProps = {
|
||||
export type NotFoundErrorPageProps = {
|
||||
children?: ReactNode;
|
||||
};
|
||||
|
||||
/** @public */
|
||||
export type CoreErrorDisplayProps = {
|
||||
export type ErrorDisplayProps = {
|
||||
plugin?: FrontendPlugin;
|
||||
error: Error;
|
||||
resetError: () => void;
|
||||
|
||||
Reference in New Issue
Block a user