From 9f0e3850e3f40368d0ad1480200dad6f10a1772a Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 3 Feb 2021 11:24:40 +0300 Subject: [PATCH] Fixed #1795 - SplitterPanel is not exported in TypeScript --- src/components/splitter/Splitter.d.ts | 9 +++++++++ src/components/splitter/Splitter.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/splitter/Splitter.d.ts b/src/components/splitter/Splitter.d.ts index 72c65b7ec6..ec6588c109 100644 --- a/src/components/splitter/Splitter.d.ts +++ b/src/components/splitter/Splitter.d.ts @@ -1,5 +1,14 @@ import * as React from 'react'; +interface SplitterPanelProps { + header?: number; + minSize?: number; + style?: object; + className?: string; +} + +export class SplitterPanel extends React.Component {} + interface SplitterProps { id?: string; className?: string; diff --git a/src/components/splitter/Splitter.js b/src/components/splitter/Splitter.js index 2ff77f0af5..369a1a8ff8 100644 --- a/src/components/splitter/Splitter.js +++ b/src/components/splitter/Splitter.js @@ -15,7 +15,7 @@ export class SplitterPanel extends Component { static propTypes = { header: PropTypes.number, - disabled: PropTypes.number, + minSize: PropTypes.number, style: PropTypes.object, className: PropTypes.string }