Skip to content

Commit

Permalink
Change prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Apr 12, 2024
1 parent bf7cced commit a0cd3d7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/TextInput/BaseTextInput/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ function BaseTextInput(
autoCorrect = true,
prefixCharacter = '',
inputID,
markdownEnabled = false,
isMarkdownEnabled = false,
...props
}: BaseTextInputProps,
ref: ForwardedRef<BaseTextInputRef>,
) {
const InputComponent = markdownEnabled ? RNMarkdownTextInput : RNTextInput;
const InputComponent = isMarkdownEnabled ? RNMarkdownTextInput : RNTextInput;

const inputProps = {shouldSaveDraft: false, shouldUseDefaultValue: false, ...props};
const theme = useTheme();
Expand Down
4 changes: 2 additions & 2 deletions src/components/TextInput/BaseTextInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ function BaseTextInput(
autoCorrect = true,
prefixCharacter = '',
inputID,
markdownEnabled = false,
isMarkdownEnabled = false,
...inputProps
}: BaseTextInputProps,
ref: ForwardedRef<BaseTextInputRef>,
) {
const InputComponent = markdownEnabled ? RNMarkdownTextInput : RNTextInput;
const InputComponent = isMarkdownEnabled ? RNMarkdownTextInput : RNTextInput;

const theme = useTheme();
const styles = useThemeStyles();
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextInput/BaseTextInput/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ type CustomBaseTextInputProps = {
autoCompleteType?: string;

/** Should live markdown be enabled. Changes RNTextInput component to RNMarkdownTextInput */
markdownEnabled?: boolean;
isMarkdownEnabled?: boolean;
};

type BaseTextInputRef = HTMLFormElement | AnimatedTextInputRef;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks/NewTaskDescriptionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function NewTaskDescriptionPage({task}: NewTaskDescriptionPageProps) {
autoGrowHeight
shouldSubmitForm
containerStyles={styles.autoGrowHeightMultilineInput}
markdownEnabled
isMarkdownEnabled
/>
</View>
</FormProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks/NewTaskDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function NewTaskDetailsPage({task}: NewTaskDetailsPageProps) {
defaultValue={parser.htmlToMarkdown(parser.replace(taskDescription))}
value={taskDescription}
onValueChange={setTaskDescription}
markdownEnabled
isMarkdownEnabled
/>
</View>
</FormProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks/TaskDescriptionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function TaskDescriptionPage({report, currentUserPersonalDetails}: TaskDescripti
autoGrowHeight
shouldSubmitForm
containerStyles={[styles.autoGrowHeightMultilineInput]}
markdownEnabled
isMarkdownEnabled
/>
</View>
</FormProvider>
Expand Down

0 comments on commit a0cd3d7

Please sign in to comment.