Skip to content

Commit

Permalink
docs(Portal): remove useless props in PortalExampleControlled (#2159)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed Oct 3, 2017
1 parent 17584a9 commit ee931d2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions docs/app/Examples/addons/Portal/Types/PortalExampleControlled.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand All @@ -23,12 +21,7 @@ export default class PortalExampleControlled extends Component {
onClick={this.handleClick}
/>

<Portal
closeOnTriggerClick
openOnTriggerClick
onClose={this.handleClose}
open={open}
>
<Portal onClose={this.handleClose} open={open}>
<Segment style={{ left: '40%', position: 'fixed', top: '50%', zIndex: 1000 }}>
<Header>This is a controlled portal</Header>
<p>Portals have tons of great callback functions to hook into.</p>
Expand Down

0 comments on commit ee931d2

Please sign in to comment.