Skip to content

Commit

Permalink
fix: ability to change strand for templated sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Aug 27, 2024
1 parent e5545eb commit 09183e1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ export default function StrandSwitch(
props: StrandSwitchProps
): React.ReactElement {
const classes = useStyles();
const { selectedStrand, switchClasses } = props;
const { setStrand, selectedStrand, switchClasses } = props;
const handleSwitchChange = (e: React.ChangeEvent<HTMLInputElement>) => {
setStrand(e.target.checked ? "-" : "+");
};

return (
<FormControlLabel
control={
<Switch
onChange={handleSwitchChange}
classes={{ track: classes.track }}
checked={selectedStrand === "-"}
icon={<AddCircleIcon color="primary" />}
Expand Down

0 comments on commit 09183e1

Please sign in to comment.