From 2a65f020ecf63494259d7dde8c8790d92f76f940 Mon Sep 17 00:00:00 2001 From: 289Adam289 Date: Fri, 20 Dec 2024 15:56:18 +0100 Subject: [PATCH] fix shell lint and add styles --- scripts/parser-workletization.sh | 1 + src/components/Search/SearchRouter/SearchRouterInput/index.tsx | 2 +- src/libs/SearchQueryUtils.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/parser-workletization.sh b/scripts/parser-workletization.sh index 2cb6e715d8ab..13d72ea0ab1f 100755 --- a/scripts/parser-workletization.sh +++ b/scripts/parser-workletization.sh @@ -11,6 +11,7 @@ if [ ! -f "$filePath" ]; then echo "$filePath does not exist." exit 1 fi +# shellcheck disable=SC2016 if awk 'BEGIN { print "\47worklet\47\n\nclass peg\$SyntaxError{}" } 1' "$filePath" | sed 's/function peg\$SyntaxError/function temporary/g' | sed 's/peg$subclass(peg$SyntaxError, Error);//g' > tmp.txt; then mv tmp.txt "$filePath" echo "Successfully updated $filePath" diff --git a/src/components/Search/SearchRouter/SearchRouterInput/index.tsx b/src/components/Search/SearchRouter/SearchRouterInput/index.tsx index 18498869ab04..d18a8377240a 100644 --- a/src/components/Search/SearchRouter/SearchRouterInput/index.tsx +++ b/src/components/Search/SearchRouter/SearchRouterInput/index.tsx @@ -66,7 +66,7 @@ function SearchRouterInput( onSubmitEditing={onSubmit} shouldUseDisabledStyles={false} textInputContainerStyles={[styles.borderNone, styles.pb0]} - inputStyle={[inputWidth, styles.p3]} + inputStyle={[inputWidth, styles.p3, styles.dFlex, styles.alignItemsCenter]} onFocus={() => { setIsFocused(true); routerListRef?.current?.updateExternalTextInputFocus(true); diff --git a/src/libs/SearchQueryUtils.ts b/src/libs/SearchQueryUtils.ts index 1c92b0f848b3..4ef0f60cc1c0 100644 --- a/src/libs/SearchQueryUtils.ts +++ b/src/libs/SearchQueryUtils.ts @@ -67,7 +67,7 @@ const UserFriendlyKeyMap: Record