-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import type { TextStyle } from 'react-native'; | ||
import { Text } from 'react-native'; | ||
|
||
interface LabelTextProps { | ||
label: string; | ||
isRequired: boolean; | ||
isRequiredLabel: string; | ||
styles: TextStyle; | ||
} | ||
|
||
const LabelText: React.FC<LabelTextProps> = ({ label, isRequired, isRequiredLabel, styles }) => { | ||
return ( | ||
<Text style={styles}> | ||
{label} | ||
{isRequired && ` ${isRequiredLabel}`} | ||
</Text> | ||
); | ||
}; | ||
|
||
export default LabelText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
export const FORM_TITLE = 'Report a Bug'; | ||
export const NAME_PLACEHOLDER = 'Name'; | ||
export const EMAIL_PLACEHOLDER = 'Email'; | ||
export const MESSAGE_PLACEHOLDER = 'Description'; | ||
export const NAME_PLACEHOLDER = 'Your Name'; | ||
export const NAME_LABEL = 'Name'; | ||
export const EMAIL_PLACEHOLDER = '[email protected]'; | ||
export const EMAIL_LABEL = 'Email'; | ||
export const MESSAGE_PLACEHOLDER = "What's the bug? What did you expect?"; | ||
export const MESSAGE_LABEL = 'Description'; | ||
export const IS_REQUIRED_LABEL = '(required)'; | ||
export const SUBMIT_BUTTON_LABEL = 'Send Bug Report'; | ||
export const CANCEL_BUTTON_LABEL = 'Cancel'; | ||
export const ERROR_TITLE = 'Error'; | ||
|