Skip to content

Commit

Permalink
fix collapse story
Browse files Browse the repository at this point in the history
  • Loading branch information
glenwid committed Jun 15, 2021
1 parent fc96051 commit 90c9691
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/stories/CodeReviewCollapse.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import { Story, Meta } from '@storybook/react/types-6-0'
import { CustomComment } from '../types/types'
import { forceReRender } from '@storybook/react'
import moment from "moment";

export default {
component: CodeReviewCollapsable,
Expand All @@ -29,14 +30,16 @@ const customComment1: CustomComment = {
line: 0,
author: 'Captain Falcon',
content: 'Falcoooon PUNCH!!',
type: 'comment'
type: 'comment',
timeAdded: moment().format('DD-MM-YY HH:mm')
}

const customComment2: CustomComment = {
line: 3,
author: 'Spock',
content: 'Live long and prosper.',
type: 'comment'
type: 'comment',
timeAdded: moment().format('DD-MM-YY HH:mm')
}

let customCommentContainer = [customComment1, customComment2]
Expand Down Expand Up @@ -107,7 +110,8 @@ jsx.args = {
onCommentDeleted: comment => handleCommentDeleted(comment, jsx),
onCommentEdited: (oldComment, newComment) =>
handleCommentEdited(oldComment, newComment, jsx),
user: 'Storybook Tester'
user: 'Storybook Tester',
role: "student"
},
width: 500,
title: 'testReview.jsx'
Expand Down

0 comments on commit 90c9691

Please sign in to comment.