Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Storybook being broken #3939

Merged
merged 1 commit into from Nov 15, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Fix Storybook being broken

A prop in Rewards concepts was missing, causing Storybook to stop working.

fix brave/brave-browser#6847
  • Loading branch information
cezaraugusto committed Nov 8, 2019
commit b30733c1b11163083a1d7536f1140cf361707fde
@@ -124,6 +124,10 @@ storiesOf('Rewards/Concepts/Desktop', module)
console.log('onDonate')
}

const onTweet = () => {
console.log('onTweet')
}

const onAmountSelection = (tokens: string) => {
store.set({ currentAmount: tokens })
}
@@ -151,6 +155,7 @@ storiesOf('Rewards/Concepts/Desktop', module)
store.state.showBanner
? <div style={{ position: 'fixed', top: 0, left: 0, height: '100vh', width: '100%', backgroundColor: 'rgba(12,13,33,0.85)' }}>
<SiteBanner
onTweet={onTweet}
type={select('Banner Type', {
'one-time': 'one-time',
monthly: 'monthly'
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.