Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Nov 8, 2017
1 parent 2c674b1 commit f48fbd3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/react-native/src/bin/storybook-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ if (!program.skipPackager) {
let cliCommand = 'node node_modules/react-native/local-cli/cli.js start';
if (program.haul) {
const platform = program.platform || 'all';
cliCommand = `node node_modules/.bin/haul start --config ${program.haul} --platform ${platform}`;
cliCommand = `node node_modules/.bin/haul start --config ${program.haul} --platform ${
platform
}`;
}
// RN packager
shelljs.exec(
Expand Down
4 changes: 1 addition & 3 deletions app/react-native/src/manager/components/PreviewHelp.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ const PreviewHelp = () => (
<h1>Welcome to storybook</h1>
<p>This is a UI component dev environment for your app.</p>
<p>
We've added some basic stories inside the {
<span style={styles.code}>storybook/stories</span>
}{' '}
We've added some basic stories inside the {<span style={styles.code}>storybook/stories</span>}{' '}
directory. A story is a single state of one or more UI components. You can have as many
stories as you want. Basically a story is like a visual test case.
</p>
Expand Down
4 changes: 3 additions & 1 deletion app/react/src/client/preview/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export function renderMain(data, storyStore) {

if (!isReactRenderable(element)) {
const error = {
title: `Expecting a valid React element from the story: "${selectedStory}" of "${selectedKind}".`,
title: `Expecting a valid React element from the story: "${selectedStory}" of "${
selectedKind
}".`,
description: stripIndents`
Seems like you are not returning a correct React element from the story.
Could you double check that?
Expand Down

0 comments on commit f48fbd3

Please sign in to comment.