refactor: 템플릿에서 기본적으로 제공하고 있는 워크 플로우에 디자인과 라우팅 흡수
This commit is contained in:
@@ -207,15 +207,28 @@ export function StatusPage(
|
||||
primaryAction?: PageActionDefinition;
|
||||
secondaryAction?: PageActionDefinition;
|
||||
supportReference?: string;
|
||||
className?: string;
|
||||
children?: ReactNode;
|
||||
headingNode?: ReactNode;
|
||||
visualPolicy?: "platform" | "inherit";
|
||||
}>,
|
||||
) {
|
||||
const { message } = useLocale();
|
||||
const platformVisuals = props.visualPolicy !== "inherit";
|
||||
return (
|
||||
<section
|
||||
className={`ui-page page-template status-page status-page--${props.variant}`}
|
||||
className={[
|
||||
platformVisuals ? "ui-page" : null,
|
||||
platformVisuals ? "page-template" : null,
|
||||
platformVisuals ? "status-page" : null,
|
||||
platformVisuals ? `status-page--${props.variant}` : null,
|
||||
props.className,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" ")}
|
||||
data-status-variant={props.variant}
|
||||
>
|
||||
<PageHeader {...props.heading} />
|
||||
{props.headingNode ?? <PageHeader {...props.heading} />}
|
||||
{props.primaryAction || props.secondaryAction ? (
|
||||
<PageActionBar
|
||||
className="status-page__actions"
|
||||
@@ -233,6 +246,7 @@ export function StatusPage(
|
||||
})}
|
||||
</p>
|
||||
) : null}
|
||||
{props.children}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user