Skip to content

Commit

Permalink
fix: component template
Browse files Browse the repository at this point in the history
Fix component template paths

Closes DCOS-40668
  • Loading branch information
weblancaster committed Aug 22, 2018
1 parent 773927a commit 4a5efb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/templates/component/components/Component.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { style } from "./style";
import { style } from "../style";

export interface I${Component}Props {
children?: React.ReactNode | string;
Expand Down
2 changes: 1 addition & 1 deletion scripts/templates/component/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as ${Component} } from "./${Component}";
export { default as ${Component} } from "./components/${Component}";
2 changes: 1 addition & 1 deletion scripts/templates/component/stories/Component.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import { storiesOf } from "@storybook/react";
import { withReadme } from "storybook-readme";
import ${Component} from "../${Component}";
import { ${Component} } from "../../index";

const readme = require("../README.md");

Expand Down
2 changes: 1 addition & 1 deletion scripts/templates/component/tests/Component.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import ${Component} from ".";
import { ${Component} } from "../";

describe("${Component}", () => {
it.skip("test something", () => {});
Expand Down

0 comments on commit 4a5efb2

Please sign in to comment.