Skip to content

Commit

Permalink
Destructure props in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubKorytko committed Feb 14, 2025
1 parent e4dd9ae commit a10d7cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/TextInput/BaseTextInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,11 @@ function BaseTextInput(
const InputComponent = InputComponentMap.get(type) ?? RNTextInput;
const isMarkdownEnabled = type === 'markdown';
const isAutoGrowHeightMarkdown = isMarkdownEnabled && autoGrowHeight;
const {markdownStyle: propsMarkdownStyle} = inputProps;

const theme = useTheme();
const styles = useThemeStyles();
const markdownStyle = useMarkdownStyle(undefined, excludedMarkdownStyles);
const {hasError = false, markdownStyle: propsMarkdownStyle} = inputProps;
const mergedMarkdownStyle = useMemo(() => ({...markdownStyle, ...propsMarkdownStyle}), [markdownStyle, propsMarkdownStyle]);
const {hasError = false} = inputProps;
const StyleUtils = useStyleUtils();
const {translate} = useLocalize();

Expand Down

0 comments on commit a10d7cb

Please sign in to comment.