revamp template
This commit is contained in:
9
src/components/switch/enforce-switch.tsx
Normal file
9
src/components/switch/enforce-switch.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
const EnforceSwitch = ({ enforce, onChange }: { enforce: boolean, onChange: React.ChangeEventHandler<HTMLInputElement> }) => {
|
||||
return (
|
||||
<label className="switch switch-sm justify-center">
|
||||
<input type="checkbox" checked={enforce} value="1" onChange={onChange} />
|
||||
</label>
|
||||
);
|
||||
};
|
||||
|
||||
export { EnforceSwitch };
|
||||
1
src/components/switch/index.ts
Normal file
1
src/components/switch/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "./enforce-switch"
|
||||
Reference in New Issue
Block a user