File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " uilib-docs" ,
3
- "version" : " 3.28.1 " ,
3
+ "version" : " 3.29.0 " ,
4
4
"main" : " ./src/index.ts" ,
5
5
"scripts" : {
6
6
"docusaurus" : " docusaurus" ,
Original file line number Diff line number Diff line change @@ -75,10 +75,9 @@ export function ColorsTable() {
75
75
}
76
76
} ) ) ;
77
77
78
- const onTokenPress = value => {
79
- Clipboard . setString ( value ) ;
80
- const systemColorName = Colors . getSystemColorByHex ( value ) ;
81
- const message = `Copied ${ value } to clipboard\n System color: ${ systemColorName } ` ;
78
+ const onTokenPress = ( { token, value} ) => {
79
+ Clipboard . setString ( token ) ;
80
+ const message = `Copied ${ token } to clipboard\nHex: ${ value } ` ;
82
81
setMessage ( message ) ;
83
82
toggleToastVisibility ( ) ;
84
83
} ;
@@ -92,7 +91,7 @@ export function ColorsTable() {
92
91
} ;
93
92
94
93
const TokenBox = ( { token, index, mode, onPress} ) => (
95
- < TouchableOpacity onPress = { ( ) => onPress ( Colors . getColor ( token , mode ) ) } flex marginV-s1 >
94
+ < TouchableOpacity onPress = { ( ) => onPress ( { token , value : Colors . getColor ( token , mode ) } ) } flex marginV-s1 >
96
95
< View key = { `${ token } -${ index } -${ mode } -container` } center row marginB-3 >
97
96
< View
98
97
key = { `${ token } -${ index } -${ mode } ` }
You can’t perform that action at this time.
0 commit comments