File tree Expand file tree Collapse file tree
fission/src/ui/panels/configuring/assembly-config/interfaces Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ interface BehaviorCardProps {
1414 name : string
1515 behavior : SequentialBehaviorPreferences
1616 lookingForParent : SequentialBehaviorPreferences | undefined
17- update : ( ) => void
1817 onSetPressed : ( ) => void
1918 onBehaviorSelected : ( ) => void
2019 hasChild : boolean
@@ -24,7 +23,6 @@ const BehaviorCard: React.FC<BehaviorCardProps> = ({
2423 elementKey,
2524 name,
2625 behavior,
27- update,
2826 onSetPressed,
2927 lookingForParent,
3028 onBehaviorSelected,
@@ -51,10 +49,7 @@ const BehaviorCard: React.FC<BehaviorCardProps> = ({
5149 < Button
5250 size = "small"
5351 className = "text-center mx-[5%] h-full"
54- onClick = { ( ) => {
55- onBehaviorSelected ( )
56- update ( )
57- } }
52+ onClick = { onBehaviorSelected }
5853 disabled = { ! selectable }
5954 color = { "secondary" }
6055 sx = { {
@@ -80,10 +75,7 @@ const BehaviorCard: React.FC<BehaviorCardProps> = ({
8075 >
8176 < div >
8277 < Button
83- onClick = { ( ) => {
84- onSetPressed ( )
85- update ( )
86- } }
78+ onClick = { onSetPressed }
8779 className = { "h-full" }
8880 color = { hasParent ? "warning" : "primary" }
8981 disabled = { selectable || hasChild }
@@ -181,7 +173,6 @@ const SequentialBehaviorsInterface: React.FC<SequentialBehaviorProps> = ({ selec
181173 name = { behavior . type === "Arm" ? `Joint ${ jointIndex } (Pivot)` : `Joint ${ jointIndex } (Slider)` }
182174 behavior = { behavior }
183175 key = { jointIndex }
184- update = { update }
185176 onSetPressed = { ( ) => {
186177 if ( behavior . parentJointIndex !== undefined ) {
187178 behavior . parentJointIndex = undefined
You can’t perform that action at this time.
0 commit comments