Skip to content

Commit 1a1561d

Browse files
committed
fix(widgets): implement feedback for weather widget
1 parent 6ed65b9 commit 1a1561d

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

src/components/widgets/WeatherWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const WeatherWidget = ({
8787
</BodySSB>
8888
</View>
8989
<View style={styles.columnRight}>
90-
<BodyMSB numberOfLines={1}>{nextBlockFee} bitcoin/vB</BodyMSB>
90+
<BodyMSB numberOfLines={1}>{nextBlockFee} ₿/vByte</BodyMSB>
9191
</View>
9292
</View>
9393
)}

src/screens/Widgets/Widget.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,16 @@ const Widget = ({
120120
{renderWidget()}
121121

122122
<View style={styles.buttonsContainer}>
123-
<Button
124-
style={styles.button}
125-
text={t('common:delete')}
126-
size="large"
127-
variant="secondary"
128-
testID="WidgetDelete"
129-
onPress={onDelete}
130-
/>
123+
{savedWidget && (
124+
<Button
125+
style={styles.button}
126+
text={t('common:delete')}
127+
size="large"
128+
variant="secondary"
129+
testID="WidgetDelete"
130+
onPress={onDelete}
131+
/>
132+
)}
131133
<Button
132134
style={styles.button}
133135
text={t('save')}

src/screens/Widgets/WidgetEdit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const WidgetEdit = ({
122122
{
123123
key: 'showNextBlockFee' as const,
124124
title: t('weather.next_block'),
125-
value: `${nextBlockFee} bitcoin/vB`,
125+
value: `${nextBlockFee} ₿/vByte`,
126126
},
127127
];
128128

src/utils/i18n/locales/en/widgets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
}
102102
},
103103
"current_fee": {
104-
"string": "Current fee"
104+
"string": "Current average fee"
105105
},
106106
"next_block": {
107107
"string": "Next block inclusion"

0 commit comments

Comments
 (0)