Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[No QA] [TS migration] Migrate 'whiteSpace' style to TypeScript #25826

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/styles/utilities/whiteSpace/index.native.js

This file was deleted.

9 changes: 9 additions & 0 deletions src/styles/utilities/whiteSpace/index.native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import WhiteSpaceStyles from './types';

const whiteSpace: WhiteSpaceStyles = {
noWrap: {},
preWrap: {},
pre: {},
};

export default whiteSpace;
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default {
import WhiteSpaceStyles from './types';

const whiteSpace: WhiteSpaceStyles = {
noWrap: {
whiteSpace: 'nowrap',
},
Expand All @@ -9,3 +11,5 @@ export default {
whiteSpace: 'pre',
},
};

export default whiteSpace;
5 changes: 5 additions & 0 deletions src/styles/utilities/whiteSpace/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {CSSProperties} from 'react';

type WhiteSpaceStyles = Record<'noWrap' | 'preWrap' | 'pre', Partial<Pick<CSSProperties, 'whiteSpace'>>>;

export default WhiteSpaceStyles;
Loading