Allow multiple errors and dismissing errors

This commit is contained in:
Misode
2021-07-02 02:59:19 +02:00
parent f43cb03cc3
commit 985057ab4e
5 changed files with 40 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ export const Previews: {
},
]
type PreviewProps = {
type PreviewPanelProps = {
lang: string,
model: DataModel | null,
version: VersionId,
@@ -52,7 +52,7 @@ type PreviewProps = {
shown: boolean,
onError: (message: string) => unknown,
}
export function PreviewPanel({ lang, model, version, id, shown }: PreviewProps) {
export function PreviewPanel({ lang, model, version, id, shown }: PreviewPanelProps) {
const [, setCount] = useState(0)
useModel(model, () => {