Skip to content

Commit 89c6af2

Browse files
committed
add widget position
1 parent 5ae7c82 commit 89c6af2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

frontend/app/routes/widget.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import {
1919
WalletOwnershipModal,
2020
OverridePresetModal,
2121
StepsIndicator,
22-
MobileStepsIndicator
22+
MobileStepsIndicator,
23+
WidgetPositionSelector
2324
} from '@/components'
2425
import {
2526
toolState,
@@ -339,6 +340,14 @@ export default function Widget() {
339340
isComplete ? 'filled' : 'unfilled'
340341
)
341342
}
343+
positionSelector={
344+
<WidgetPositionSelector
345+
defaultValue={snap.currentConfig?.widgetPosition}
346+
onChange={(value) =>
347+
toolActions.setToolConfig({ widgetPosition: value })
348+
}
349+
/>
350+
}
342351
/>
343352

344353
<div

0 commit comments

Comments
 (0)