Skip to content

Commit 83af756

Browse files
committed
refactor: update button text labels for clarity
1 parent 5852217 commit 83af756

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

example/src/containers/Basics.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const Basics = () => {
1212
message: 'I am an alert',
1313
})
1414
}
15-
text="Show Alert"
15+
text="Simple Alert"
1616
/>
1717
<Button
1818
onPress={() =>
@@ -24,7 +24,7 @@ export const Basics = () => {
2424
),
2525
})
2626
}
27-
text="Show Alert with long message"
27+
text="Long Message"
2828
/>
2929
<Button
3030
onPress={() => {
@@ -53,21 +53,21 @@ export const Basics = () => {
5353
],
5454
});
5555
}}
56-
text="Show 2 Alerts"
56+
text="Alerts queue"
5757
/>
5858
<Button
5959
onPress={() => {
6060
alert.success({
6161
message: 'I am a success alert',
6262
});
6363
}}
64-
text="Show Success Alert"
64+
text="Success"
6565
/>
6666
<Button
6767
onPress={() => {
6868
alert.error(new Error('I am an error alert'));
6969
}}
70-
text="Show Error Alert"
70+
text="Error"
7171
/>
7272
<Button
7373
onPress={async () => {
@@ -83,7 +83,7 @@ export const Basics = () => {
8383
alert.error(new Error('You pressed no'));
8484
}
8585
}}
86-
text="Show Confirm"
86+
text="Confirm"
8787
/>
8888
<Button
8989
onPress={async () => {
@@ -108,7 +108,7 @@ export const Basics = () => {
108108
],
109109
});
110110
}}
111-
text="Show Dismissible Alert"
111+
text="Dismissible alert"
112112
/>
113113
</Section>
114114
);

example/src/containers/Customizations.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ export const Customizations = () => {
7777
color: 'red',
7878
fontSize: 28,
7979
lineHeight: 32,
80-
textAlign: 'left',
80+
textAlign: 'right',
8181
},
8282
]}
8383
>
84-
{'Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.'.repeat(
85-
20
86-
)}
84+
{
85+
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos. Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.'
86+
}
8787
</Text>
8888
),
8989
})

0 commit comments

Comments
 (0)