This file contains hidden or 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
| import React, { Component } from 'react'; | |
| export default function withPseudoState(WrappedComponent) { | |
| return class ComponentWithPseudoState extends Component { | |
| actionKeys = ['Enter', ' '] | |
| state = { | |
| isActive: false, | |
| isFocus: false, | |
| isHover: false, | |
| } |
This file contains hidden or 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
| renderImageSelect () { | |
| var selectPrefix = this.props.selectPrefix; | |
| var self = this; | |
| var getOptions = function (input, callback) { | |
| // build our url, accounting for selectPrefix | |
| var uri = Keystone.adminPath + '/api/cloudinary/autocomplete'; | |
| if (selectPrefix) { | |
| uri = uri + '?prefix=' + selectPrefix; | |
| } |
NewerOlder