mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-03-23 19:27:51 -04:00
feat: Implement digital signatures for participant consent and introduce study forms management.
This commit is contained in:
@@ -2,52 +2,52 @@
|
||||
|
||||
import { SettingsTab } from "./tabs/SettingsTab";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogDescription,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogDescription,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "~/components/ui/dialog";
|
||||
|
||||
interface SettingsModalProps {
|
||||
open: boolean;
|
||||
onOpenChange: (open: boolean) => void;
|
||||
experiment: {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string | null;
|
||||
status: string;
|
||||
studyId: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
study: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
designStats?: {
|
||||
stepCount: number;
|
||||
actionCount: number;
|
||||
open: boolean;
|
||||
onOpenChange: (open: boolean) => void;
|
||||
experiment: {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string | null;
|
||||
status: string;
|
||||
studyId: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
study: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
designStats?: {
|
||||
stepCount: number;
|
||||
actionCount: number;
|
||||
};
|
||||
}
|
||||
|
||||
export function SettingsModal({
|
||||
open,
|
||||
onOpenChange,
|
||||
experiment,
|
||||
designStats,
|
||||
open,
|
||||
onOpenChange,
|
||||
experiment,
|
||||
designStats,
|
||||
}: SettingsModalProps) {
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
||||
<DialogContent className="max-w-4xl max-h-[90vh] p-0">
|
||||
<DialogHeader className="sr-only">
|
||||
<DialogTitle>Experiment Settings</DialogTitle>
|
||||
<DialogDescription>
|
||||
Configure experiment metadata and status
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<SettingsTab experiment={experiment} designStats={designStats} />
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
||||
<DialogContent className="max-h-[90vh] max-w-4xl p-0">
|
||||
<DialogHeader className="sr-only">
|
||||
<DialogTitle>Experiment Settings</DialogTitle>
|
||||
<DialogDescription>
|
||||
Configure experiment metadata and status
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<SettingsTab experiment={experiment} designStats={designStats} />
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user