fix(app): editor route split into dialogs and pickers components, canvas without lint suppression, findings picker coverage restored; golden test pins every generated draft file; stale doc lines
This commit is contained in:
1 parent
0476276a8f
commit
09d8b01a54
11 files changed
+374
-161
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import Button from '@/components/ui/Button'
|
||||
import Dialog from '@/components/ui/Dialog'
|
||||
import { useT } from '@/i18n/useT'
|
||||
|
||||
export interface DisclaimerDialogProps {
|
||||
text: string
|
||||
onAcknowledge: () => void
|
||||
}
|
||||
|
||||
/** Scope disclaimer of the sheet, shown once per tab session. */
|
||||
export default function DisclaimerDialog({
|
||||
text,
|
||||
onAcknowledge,
|
||||
}: DisclaimerDialogProps) {
|
||||
const t = useT()
|
||||
return (
|
||||
<Dialog
|
||||
open
|
||||
onClose={onAcknowledge}
|
||||
title={t('editor.disclaimer_title')}
|
||||
size="md"
|
||||
>
|
||||
<div className="space-y-4">
|
||||
<p className="text-sm text-[var(--color-ink)]">{text}</p>
|
||||
<div className="flex justify-end">
|
||||
<Button onClick={onAcknowledge}>{t('common.understood')}</Button>
|
||||
</div>
|
||||
</div>
|
||||
</Dialog>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user