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

feat: adds fast-development-site for testing component libraries #7

Merged
merged 4 commits into from
Mar 3, 2018

Conversation

janechu
Copy link
Collaborator

@janechu janechu commented Mar 3, 2018

Closes #5

@@ -0,0 +1,2 @@
import Site, { ISiteProps, ISiteCategoryProps } from "./site";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to future proof, you can import and export the default, then do `export * from "./site";

@@ -0,0 +1,36 @@
import * as React from "react";
import {ISiteCategoryItemProps} from "./";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think item props should be defined in the category-item

}

private renderComponent(): JSX.Element[] {
return this.props.item.data.map((data: any, index: number) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should check to make sure this.props has item and that item.data is an array

import {ISiteCategoryItemProps} from "./";

interface ICategoryItemProps {
item: ISiteCategoryItemProps;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this component just expect ISiteCategoryItemProps?

{
"extends": [
"@microsoft/fast-tslint-rules",
"tslint-react"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-tslint-rules should already extend ts-lint react so I don't think you need this.

@nicholasrice nicholasrice merged commit 53ce962 into master Mar 3, 2018
@nicholasrice nicholasrice deleted the users/janechu/add-initial-dev-client branch March 3, 2018 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants