Skip to content

Commit

Permalink
update function name of slide action
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Dec 2, 2023
1 parent 4eb951b commit aaca032
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/cryptomaterial/segmented_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func (t *Theme) SegmentedControl(segmentTitles []string, segmentType SegmentType
rightNavBtn: t.NewClickable(false),
isSwipeActionEnabled: true,
segmentType: segmentType,
slideAction: NewSliceAction(),
slideActionTitle: NewSliceAction(),
slideAction: NewSlideAction(),
slideActionTitle: NewSlideAction(),
}

sc.slideAction.Draged(func(dragDirection SwipeDirection) {
Expand Down
2 changes: 1 addition & 1 deletion ui/cryptomaterial/slide_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type SlideAction struct {
isPushing bool
}

func NewSliceAction() *SlideAction {
func NewSlideAction() *SlideAction {
return &SlideAction{
Duration: defaultDuration,
dragEffect: defaultdragEffect,
Expand Down
2 changes: 1 addition & 1 deletion ui/cryptomaterial/slider.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (t *Theme) Slider() *Slider {
ButtonBackgroundColor: values.TransparentColor(values.TransparentWhite, 0.2),
IndicatorBackgroundColor: values.TransparentColor(values.TransparentWhite, 0.2),
SelectedIndicatorColor: t.Color.White,
slideAction: NewSliceAction(),
slideAction: NewSlideAction(),
}

sl.card = sl.t.Card()
Expand Down

0 comments on commit aaca032

Please sign in to comment.