Closed serapieTuyishime closed 3 weeks ago
To create a toggle component that will control the visibility of the signal.
Switch.tsx
components/ui/
isOn
false
onStateChange
home screen
Figma
Objective
To create a toggle component that will control the visibility of the signal.
Description
Switch.tsx
component in thecomponents/ui/
folder.isOn
state inside the component withfalse
as a default value.onStateChange
function as a prop.home screen
on both the x and the Y axes.isOn
state.isOn
state.onStateChange
function will be called when the user clicks on the toggle component.Acceptance criteria
onStateChange
function is called when the user clicks on the toggleDesign
Figma