Working single comment view

This commit is contained in:
Belén Curcio
2018-07-25 17:24:14 -03:00
parent e519503129
commit 906940f152
13 changed files with 125 additions and 147 deletions
@@ -1,26 +1,25 @@
import * as React from "react";
import { StatelessComponent } from "react";
import { CommentProps } from "talk-stream/components/Comment";
import { Flex } from "talk-ui/components";
import CommentContainer from "../containers/CommentContainer";
export interface AppProps {
comment: CommentProps | null;
export interface InnerProps {
comment: {} | null;
}
const PermalinkView: StatelessComponent<AppProps> = props => {
const PermalinkView: StatelessComponent<InnerProps> = props => {
if (props.comment) {
return (
<Flex justifyContent="center">
<Flex direction="column" itemGutter>
<Flex direction="column">
<CommentContainer data={props.comment} />
</Flex>
</Flex>
);
}
return <div> Error </div>;
return <div>Comment not found</div>;
};
export default PermalinkView;