mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-27 08:48:46 +00:00
Allow multiple errors and dismissing errors
This commit is contained in:
@@ -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, () => {
|
||||
|
||||
Reference in New Issue
Block a user