Skip to content

Commit 45c0920

Browse files
committed
style(demo): clarify action button labels
1 parent a2f5843 commit 45c0920

4 files changed

Lines changed: 18 additions & 10 deletions

File tree

examples/demo/src/components/modals/TooltipModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function TooltipModal({ visible, tooltip, onClose }: Props) {
3434
</ScrollView>
3535
<View style={AppDialogStyles.actions}>
3636
<TouchableOpacity style={AppDialogStyles.actionBtn} onPress={onClose}>
37-
<Text style={AppDialogStyles.actionText}>Ok</Text>
37+
<Text style={AppDialogStyles.actionText}>OK</Text>
3838
</TouchableOpacity>
3939
</View>
4040
</View>

examples/demo/src/components/sections/AliasesSection.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ export default function AliasesSection({
4545
<PairList items={filtered} layout="stacked" sectionKey="aliases" />
4646
</View>
4747
)}
48-
<ActionButton label="ADD" onPress={() => setAddVisible(true)} testID="add_alias_button" />
4948
<ActionButton
50-
label="ADD MULTIPLE"
49+
label="ADD ALIAS"
50+
onPress={() => setAddVisible(true)}
51+
testID="add_alias_button"
52+
/>
53+
<ActionButton
54+
label="ADD MULTIPLE ALIASES"
5155
onPress={() => setAddMultipleVisible(true)}
5256
testID="add_multiple_aliases_button"
5357
/>

examples/demo/src/components/sections/TagsSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ export default function TagsSection({
5050
/>
5151
</View>
5252
)}
53-
<ActionButton label="ADD" onPress={() => setAddVisible(true)} testID="add_tag_button" />
53+
<ActionButton label="ADD TAG" onPress={() => setAddVisible(true)} testID="add_tag_button" />
5454
<ActionButton
55-
label="ADD MULTIPLE"
55+
label="ADD MULTIPLE TAGS"
5656
onPress={() => setAddMultipleVisible(true)}
5757
testID="add_multiple_tags_button"
5858
/>
5959
{tags.length > 0 && (
6060
<ActionButton
61-
label="REMOVE SELECTED"
61+
label="REMOVE TAGS"
6262
onPress={() => setRemoveVisible(true)}
6363
variant="outlined"
6464
testID="remove_tags_button"

examples/demo/src/components/sections/TriggersSection.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,26 @@ export default function TriggersSection({
4646
/>
4747
</View>
4848
)}
49-
<ActionButton label="ADD" onPress={() => setAddVisible(true)} testID="add_trigger_button" />
5049
<ActionButton
51-
label="ADD MULTIPLE"
50+
label="ADD TRIGGER"
51+
onPress={() => setAddVisible(true)}
52+
testID="add_trigger_button"
53+
/>
54+
<ActionButton
55+
label="ADD MULTIPLE TRIGGERS"
5256
onPress={() => setAddMultipleVisible(true)}
5357
testID="add_multiple_triggers_button"
5458
/>
5559
{triggers.length > 0 && (
5660
<>
5761
<ActionButton
58-
label="REMOVE SELECTED"
62+
label="REMOVE TRIGGERS"
5963
onPress={() => setRemoveVisible(true)}
6064
variant="outlined"
6165
testID="remove_triggers_button"
6266
/>
6367
<ActionButton
64-
label="CLEAR ALL"
68+
label="CLEAR ALL TRIGGERS"
6569
onPress={onClearAll}
6670
variant="outlined"
6771
testID="clear_triggers_button"

0 commit comments

Comments
 (0)