File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " uilib-docs" ,
3- "version" : " 3.28.1 " ,
3+ "version" : " 3.29.0 " ,
44 "main" : " ./src/index.ts" ,
55 "scripts" : {
66 "docusaurus" : " docusaurus" ,
Original file line number Diff line number Diff line change @@ -75,10 +75,9 @@ export function ColorsTable() {
7575 }
7676 } ) ) ;
7777
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 } ` ;
8281 setMessage ( message ) ;
8382 toggleToastVisibility ( ) ;
8483 } ;
@@ -92,7 +91,7 @@ export function ColorsTable() {
9291 } ;
9392
9493 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 >
9695 < View key = { `${ token } -${ index } -${ mode } -container` } center row marginB-3 >
9796 < View
9897 key = { `${ token } -${ index } -${ mode } ` }
You can’t perform that action at this time.
0 commit comments