From 5a0d84dd63c229ef94d054589f919295ddeebc71 Mon Sep 17 00:00:00 2001 From: Yauheni Pasiukevich Date: Fri, 25 Aug 2023 11:24:39 +0200 Subject: [PATCH] migrate editedLabelStyles to ts --- src/styles/editedLabelStyles/index.js | 4 ---- src/styles/editedLabelStyles/index.native.js | 1 - src/styles/editedLabelStyles/index.native.ts | 5 +++++ src/styles/editedLabelStyles/index.ts | 7 +++++++ src/styles/editedLabelStyles/types.ts | 6 ++++++ 5 files changed, 18 insertions(+), 5 deletions(-) delete mode 100644 src/styles/editedLabelStyles/index.js delete mode 100644 src/styles/editedLabelStyles/index.native.js create mode 100644 src/styles/editedLabelStyles/index.native.ts create mode 100644 src/styles/editedLabelStyles/index.ts create mode 100644 src/styles/editedLabelStyles/types.ts diff --git a/src/styles/editedLabelStyles/index.js b/src/styles/editedLabelStyles/index.js deleted file mode 100644 index cbb22221b744..000000000000 --- a/src/styles/editedLabelStyles/index.js +++ /dev/null @@ -1,4 +0,0 @@ -import display from '../utilities/display'; -import flex from '../utilities/flex'; - -export default {...display.dInlineFlex, ...flex.alignItemsBaseline}; diff --git a/src/styles/editedLabelStyles/index.native.js b/src/styles/editedLabelStyles/index.native.js deleted file mode 100644 index ff8b4c56321a..000000000000 --- a/src/styles/editedLabelStyles/index.native.js +++ /dev/null @@ -1 +0,0 @@ -export default {}; diff --git a/src/styles/editedLabelStyles/index.native.ts b/src/styles/editedLabelStyles/index.native.ts new file mode 100644 index 000000000000..3e43004a8a13 --- /dev/null +++ b/src/styles/editedLabelStyles/index.native.ts @@ -0,0 +1,5 @@ +import EditedLabelStyles from './types'; + +const editedLabelStyles: EditedLabelStyles = {}; + +export default editedLabelStyles; diff --git a/src/styles/editedLabelStyles/index.ts b/src/styles/editedLabelStyles/index.ts new file mode 100644 index 000000000000..6e6164810b52 --- /dev/null +++ b/src/styles/editedLabelStyles/index.ts @@ -0,0 +1,7 @@ +import EditedLabelStyles from './types'; +import display from '../utilities/display'; +import flex from '../utilities/flex'; + +const editedLabelStyles: EditedLabelStyles = {...display.dInlineFlex, ...flex.alignItemsBaseline}; + +export default editedLabelStyles; diff --git a/src/styles/editedLabelStyles/types.ts b/src/styles/editedLabelStyles/types.ts new file mode 100644 index 000000000000..8d96c9216ed2 --- /dev/null +++ b/src/styles/editedLabelStyles/types.ts @@ -0,0 +1,6 @@ +import {CSSProperties} from 'react'; +import {TextStyle} from 'react-native'; + +type EditedLabelStyles = CSSProperties | TextStyle; + +export default EditedLabelStyles;