Skip to content

Commit

Permalink
fix viveks comments
Browse files Browse the repository at this point in the history
Signed-off-by: Calvin Lee <[email protected]>
  • Loading branch information
cjlee1 committed Nov 16, 2024
1 parent 0f0022d commit 7dd10d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions apps/gitness/src/pages/repo/repo-summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export const RepoSummaryList: React.FC = () => {
}
title="Edit"
size="sm">
<Icon name="edit-pen" className="text-foreground h-5 w-5" />
<Icon name="edit-pen" className="text-foreground size-5" />
</ToggleGroupItem>
</ToggleGroup>
}
Expand Down Expand Up @@ -332,7 +332,6 @@ export const RepoSummaryList: React.FC = () => {
iconName: 'open-pr'
}
]}
onAddDescription={() => {}}
description={repository?.description}
/>
</SandboxLayout.Content>
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -68,7 +67,7 @@ const PullRequestTimelineItem: React.FC<TimelineItemProps> = ({
titleClassName
// currentUser
}) => {
const [comment, setComment] = React.useState<string>('')
const [comment, setComment] = useState<string>('')

return (
<NodeGroup.Root>
Expand All @@ -84,7 +83,7 @@ const PullRequestTimelineItem: React.FC<TimelineItemProps> = ({
{content}
{/* TODO: will have to eventually implement a commenting and reply system similiar to gitness */}
{!hideReply && (
<div className="flex items-center gap-3 border-t px-4 py-4">
<div className="flex items-center gap-3 border-t p-4">
{header.length > 0 && header[0].avatar}
<Input
value={comment}
Expand Down
2 changes: 1 addition & 1 deletion packages/views/src/components/repo-summary-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface PageProps {
title: string
details: DetailsProps[]
timestamp?: string
onAddDescription: () => void
onAddDescription?: () => void
description?: string
}

Expand Down

0 comments on commit 7dd10d5

Please sign in to comment.