mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-04-28 16:20:36 +00:00
Re-write types for modal actions.
This commit is contained in:
@@ -17,11 +17,11 @@ export function ErrorModal({ onClose, error }: Props) {
|
||||
{
|
||||
onClick: onClose,
|
||||
confirmation: true,
|
||||
text: <Text id="app.special.modals.actions.ok" />,
|
||||
children: <Text id="app.special.modals.actions.ok" />,
|
||||
},
|
||||
{
|
||||
onClick: () => location.reload(),
|
||||
text: <Text id="app.special.modals.actions.reload" />,
|
||||
children: <Text id="app.special.modals.actions.reload" />,
|
||||
},
|
||||
]}>
|
||||
<Text id={`error.${error}`}>{error}</Text>
|
||||
|
||||
Reference in New Issue
Block a user