Skip to content

Commit

Permalink
fix(ButtonView): Rename type property to button_type
Browse files Browse the repository at this point in the history
It was overriding the static property "type".
  • Loading branch information
LuanRT committed Jun 5, 2024
1 parent 384b80e commit 15f3b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/classes/ButtonView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class ButtonView extends YTNode {
accessibility_text: string;
style: string;
is_full_width: boolean;
type: string;
button_type: string;
button_size: string;
on_tap: NavigationEndpoint;

Expand All @@ -21,7 +21,7 @@ export default class ButtonView extends YTNode {
this.accessibility_text = data.accessibilityText;
this.style = data.style;
this.is_full_width = data.isFullWidth;
this.type = data.type;
this.button_type = data.type;
this.button_size = data.buttonSize;
this.on_tap = new NavigationEndpoint(data.onTap);
}
Expand Down

0 comments on commit 15f3b5f

Please sign in to comment.