-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate user select styles to typescript
- Loading branch information
1 parent
00efce4
commit acd61b7
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
...yles/utilities/userSelect/index.native.js → ...yles/utilities/userSelect/index.native.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
export default { | ||
import UserSelectStyles from './types'; | ||
|
||
const userSelect: UserSelectStyles = { | ||
userSelectText: { | ||
userSelect: 'text', | ||
}, | ||
userSelectNone: { | ||
userSelect: 'none', | ||
}, | ||
}; | ||
|
||
export default userSelect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {CSSProperties} from 'react'; | ||
|
||
type UserSelectStyles = Record<'userSelectText' | 'userSelectNone', Partial<Pick<CSSProperties, 'userSelect' | 'WebkitUserSelect'>>>; | ||
|
||
export default UserSelectStyles; |