Skip to content

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

Merged
nicholasrice merged 4 commits intomasterfrom
users/janechu/add-initial-dev-client
Mar 3, 2018
Merged

feat: adds fast-development-site for testing component libraries#7
nicholasrice merged 4 commits intomasterfrom
users/janechu/add-initial-dev-client

Conversation

@janechu
Copy link
Collaborator

@janechu janechu commented Mar 3, 2018

Closes #5

@janechu janechu requested a review from nicholasrice March 3, 2018 01:46
@@ -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