Skip to content

Commit

Permalink
allow welcome page story to be max width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto authored and petemill committed Jul 23, 2019
1 parent bc8819d commit d95463f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/brave_welcome_ui/stories/story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@
import * as React from 'react'
import { storiesOf } from '@storybook/react'
import { withKnobs, boolean } from '@storybook/addon-knobs'

// Components
import WelcomePage from './page/index'

const fullPageStoryStyles: object = {
width: '-webkit-fill-available',
height: '-webkit-fill-available'
}

export const FullPageStory = (storyFn: any) =>
<div style={fullPageStoryStyles}>{storyFn()}</div>

storiesOf('Welcome', module)
.addDecorator(withKnobs)
.addDecorator(FullPageStory)
.add('Page', () => {
return (
<WelcomePage isDefaultSearchGoogle={boolean('Is default search google?', true)}/>
Expand Down

0 comments on commit d95463f

Please sign in to comment.