diff --git a/apps/gitness/src/pages/repo/repo-summary.tsx b/apps/gitness/src/pages/repo/repo-summary.tsx index 1d556febd..ae4553142 100644 --- a/apps/gitness/src/pages/repo/repo-summary.tsx +++ b/apps/gitness/src/pages/repo/repo-summary.tsx @@ -290,7 +290,7 @@ export const RepoSummaryList: React.FC = () => { } title="Edit" size="sm"> - + } @@ -332,7 +332,6 @@ export const RepoSummaryList: React.FC = () => { iconName: 'open-pr' } ]} - onAddDescription={() => {}} description={repository?.description} /> diff --git a/packages/views/src/components/pull-request/pull-request-timeline-item.tsx b/packages/views/src/components/pull-request/pull-request-timeline-item.tsx index cdfabe528..5ce2666d1 100644 --- a/packages/views/src/components/pull-request/pull-request-timeline-item.tsx +++ b/packages/views/src/components/pull-request/pull-request-timeline-item.tsx @@ -1,7 +1,6 @@ -import { memo } from 'react' +import { memo, useState } from 'react' import { Button, Card, Input, NodeGroup, Text } from '@harnessio/canary' import cx from 'classnames' -import React from 'react' interface TimelineItemProps { header: { avatar?: React.ReactNode @@ -68,7 +67,7 @@ const PullRequestTimelineItem: React.FC = ({ titleClassName // currentUser }) => { - const [comment, setComment] = React.useState('') + const [comment, setComment] = useState('') return ( @@ -84,7 +83,7 @@ const PullRequestTimelineItem: React.FC = ({ {content} {/* TODO: will have to eventually implement a commenting and reply system similiar to gitness */} {!hideReply && ( -
+
{header.length > 0 && header[0].avatar} void + onAddDescription?: () => void description?: string }