use error boundary in phone number form

This commit is contained in:
m5r
2021-12-04 00:46:03 +01:00
parent 1303645d90
commit c0016a55f7
2 changed files with 106 additions and 76 deletions

View File

@ -1,4 +1,4 @@
import type { ReactElement } from "react";
import type { ReactElement, ReactChild } from "react";
type AlertVariant = "error" | "success" | "info" | "warning";
@ -10,8 +10,8 @@ type AlertVariantProps = {
};
type Props = {
title: string;
message: string;
title: ReactChild;
message: ReactChild;
variant: AlertVariant;
};