mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 14:07:33 +00:00
Initial commit.
This commit is contained in:
@@ -6,13 +6,11 @@ type CollapserProps = {
|
||||
style?: object
|
||||
};
|
||||
|
||||
export class Collapser extends React.Component<CollapserProps> {
|
||||
render() {
|
||||
const iconStyle = {
|
||||
width: 20,
|
||||
height: 20,
|
||||
...this.props.style,
|
||||
};
|
||||
return this.props.isCollapsed ? <MdArrowDropUp style={iconStyle}/> : <MdArrowDropDown style={iconStyle} />;
|
||||
}
|
||||
}
|
||||
export const Collapser: React.FC<CollapserProps> = (props) => {
|
||||
const iconStyle = {
|
||||
width: 20,
|
||||
height: 20,
|
||||
...props.style,
|
||||
};
|
||||
return props.isCollapsed ? <MdArrowDropUp style={iconStyle}/> : <MdArrowDropDown style={iconStyle} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user