Colors fixed
This commit is contained in:
parent
761cac606a
commit
799f044aaf
8 changed files with 123 additions and 80 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import { Switch } from "@headlessui/react";
|
||||
import { classNames } from "../../utils";
|
||||
import { useState } from "react";
|
||||
|
||||
export default function ToggleComponent({enabled, setEnabled}){
|
||||
return (<Switch
|
||||
checked={enabled}
|
||||
onChange={setEnabled}
|
||||
onChange={(x) => {setEnabled(x);}}
|
||||
className={classNames(
|
||||
enabled ? 'bg-indigo-600' : 'bg-gray-200',
|
||||
'relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue