From ee931d27fb0afee4606f4a316207cbd634ddaa1b Mon Sep 17 00:00:00 2001 From: Alexander Fedyashov Date: Tue, 3 Oct 2017 19:00:57 +0300 Subject: [PATCH] docs(Portal): remove useless props in PortalExampleControlled (#2159) --- .../addons/Portal/Types/PortalExampleControlled.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/app/Examples/addons/Portal/Types/PortalExampleControlled.js b/docs/app/Examples/addons/Portal/Types/PortalExampleControlled.js index a2352a149a..dd9426454f 100644 --- a/docs/app/Examples/addons/Portal/Types/PortalExampleControlled.js +++ b/docs/app/Examples/addons/Portal/Types/PortalExampleControlled.js @@ -2,9 +2,7 @@ import React, { Component } from 'react' import { Button, Grid, Header, Segment, Portal } from 'semantic-ui-react' export default class PortalExampleControlled extends Component { - state = { - open: false, - } + state = { open: false } handleClick = () => this.setState({ open: !this.state.open }) @@ -23,12 +21,7 @@ export default class PortalExampleControlled extends Component { onClick={this.handleClick} /> - +
This is a controlled portal

Portals have tons of great callback functions to hook into.