Skip to content

Commit 30e679f

Browse files
author
Tolomej Paulke
committed
Revert also the custom "as" propType which is needed for the Popup
reviewed by tpe + akr
1 parent 985d016 commit 30e679f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "semantic-ui-react",
3-
"version": "0.88.2-legacy-popup",
3+
"version": "0.88.2-legacy-popup-1",
44
"description": "The official Semantic-UI-React integration.",
55
"jsnext:main": "dist/es/index.js",
66
"main": "dist/commonjs/index.js",

src/lib/customPropTypes.js

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ import leven from './leven'
44

55
const typeOf = (...args) => Object.prototype.toString.call(...args)
66

7+
/**
8+
* Ensure a component can render as a give prop value.
9+
*/
10+
export const as = (...args) =>
11+
PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.string, PropTypes.symbol])(
12+
...args,
13+
)
14+
715
/**
816
* Ensure a prop is a valid DOM node.
917
*/

0 commit comments

Comments
 (0)