FEATURE: Add "Recent Errors" tab and improved error modal (#2169)

This commit is contained in:
Michael Ficocelli
2025-06-16 19:43:21 -04:00
committed by GitHub
parent cf72937faf
commit 18f84396e2
17 changed files with 530 additions and 34 deletions
+4 -3
View File
@@ -7,6 +7,7 @@ type OptionSwitchProps = {
onChange: (newValue: boolean, error?: string) => void;
text: React.ReactNode;
tooltip: React.ReactNode;
wrapperStyles?: React.CSSProperties;
};
export function OptionSwitch({
@@ -15,6 +16,7 @@ export function OptionSwitch({
onChange,
text,
tooltip,
wrapperStyles,
}: OptionSwitchProps): React.ReactElement {
const [value, setValue] = useState(checked);
@@ -29,7 +31,7 @@ export function OptionSwitch({
}, [checked]);
return (
<>
<div style={wrapperStyles}>
<FormControlLabel
disabled={disabled}
control={<Switch checked={value} onChange={handleSwitchChange} />}
@@ -39,7 +41,6 @@ export function OptionSwitch({
</Tooltip>
}
/>
<br />
</>
</div>
);
}