From ad11c733cccf1ed7a8e6d9ce403e9b2bbd6ce854 Mon Sep 17 00:00:00 2001 From: stCarolas Date: Tue, 25 Jun 2024 16:19:12 +0300 Subject: [PATCH] add update to new font for donationgoal --- .../widgetproperties/AnimatedFontProperty.tsx | 10 ++- .../DonationGoalWidgetSettings.tsx | 70 ++++--------------- src/components/DonationGoal/DonationGoal.tsx | 45 ++++++------ 3 files changed, 45 insertions(+), 80 deletions(-) diff --git a/src/components/ConfigurationPage/widgetproperties/AnimatedFontProperty.tsx b/src/components/ConfigurationPage/widgetproperties/AnimatedFontProperty.tsx index 5d425f0..69e6b8e 100644 --- a/src/components/ConfigurationPage/widgetproperties/AnimatedFontProperty.tsx +++ b/src/components/ConfigurationPage/widgetproperties/AnimatedFontProperty.tsx @@ -31,11 +31,14 @@ const animations = [ ]; export class AnimatedFontProperty extends DefaultWidgetProperty { + private _label: string; + constructor(params: { widgetId: string; name: string; value?: any; - tab?: string | undefined; + tab?: string; + label?: string; }) { super( params.widgetId, @@ -58,6 +61,8 @@ export class AnimatedFontProperty extends DefaultWidgetProperty { "", params.tab, ); + this._label = params.label ?? "widget-font-label"; + console.log(this._label); } copy() { @@ -66,6 +71,7 @@ export class AnimatedFontProperty extends DefaultWidgetProperty { name: this.name, value: this.value, tab: this.tab, + label: this._label }); } @@ -115,7 +121,7 @@ export class AnimatedFontProperty extends DefaultWidgetProperty { {this.createFontImport()}