Skip to content

Commit dd0de53

Browse files
committed
feat: Improved copy for navigation helper and the submit button
1 parent 1229510 commit dd0de53

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/FormHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const FormHeader: React.FC<
3636
</Box>
3737
<Box>
3838
<Text>
39-
{!props.editingField ? 'Use arrow keys to move around' : 'Press ESC to cancel, or Enter to complete field'}
39+
{!props.editingField ? 'Use left and right arrow keys to navigate between resources' : 'Press ESC to cancel, or Enter to complete field'}
4040
</Text>
4141
</Box>
4242
</Box>

src/SubmitButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ export const SubmitButton: React.FC<{
1919
{!props.canSubmit
2020
? 'There are still required inputs you have not competed yet.'
2121
: isFocused
22-
? 'Press Enter to submit form'
22+
? 'Press Enter to submit'
2323
: 'Use the arrow keys to navigate to the submit button.'}
2424
</Text>
2525
</Box>
2626
<Box borderStyle={'round'} borderColor={!props.canSubmit ? 'gray' : isFocused ? 'blue' : 'green'} paddingX={2}>
2727
<Text color={!props.canSubmit ? 'gray' : isFocused ? 'blue' : 'green'} bold={true} underline={isFocused}>
28-
{props.canSubmit ? 'Submit form' : 'Cannot submit form yet'}
28+
{props.canSubmit ? 'Submit' : 'Cannot submit yet'}
2929
</Text>
3030
</Box>
3131
</Box>

0 commit comments

Comments
 (0)