Skip to content

Commit 98e4365

Browse files
committed
Begin experimenting with frontend
1 parent 0695441 commit 98e4365

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

site/src/components/ErrorSummary/ErrorSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Language = {
1717
}
1818

1919
export interface ErrorSummaryProps {
20-
error: ApiError | Error | unknown
20+
error: ApiError | Error | unknown | JSX.Element
2121
retry?: () => void
2222
dismissible?: boolean
2323
defaultMessage?: string

site/src/pages/WorkspaceBuildPage/WorkspaceBuildPageView.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ErrorSummary } from "components/ErrorSummary/ErrorSummary"
12
import { FC } from "react"
23
import { ProvisionerJobLog, WorkspaceBuild } from "../../api/typesGenerated"
34
import { Loader } from "../../components/Loader/Loader"
@@ -26,6 +27,7 @@ export const WorkspaceBuildPageView: FC<WorkspaceBuildPageViewProps> = ({ logs,
2627
</PageHeader>
2728

2829
<Stack>
30+
<ErrorSummary error="test" />
2931
{build && <WorkspaceBuildStats build={build} />}
3032
{!logs && <Loader />}
3133
{logs && <WorkspaceBuildLogs logs={sortLogsByCreatedAt(logs)} />}

0 commit comments

Comments
 (0)