This commit is contained in:
Kenneth Jannette
2024-02-20 13:31:34 -06:00
parent 6aba0f3dbe
commit e1df0417c0
3 changed files with 13 additions and 10 deletions

View File

@@ -2,10 +2,16 @@ import ToggleButton from "react-bootstrap/ToggleButton";
import ToggleButtonGroup from "react-bootstrap/ToggleButtonGroup";
const Toggle = (props) => {
const { onClick } = props;
const { onClick, handleToggle, value } = props;
return (
<>
<ToggleButtonGroup type="radio" name="options" defaultValue={1}>
<ToggleButtonGroup
type="radio"
name="options"
value={value}
onChange={handleToggle}
defaultValue={1}
>
<ToggleButton
onClick={(e) => onClick(1)}
id="tbg-radio-1"