@@ -17,7 +17,7 @@ import DownloadFileButton from '../DownloadFileButton'
1717import ViewFileButton from '../ViewFileButton'
1818import CopyFileButton from '../CopyFileButton'
1919import type { Theme } from '../../../theme'
20- import type { LineChangeT } from '../../../releases/types'
20+ import type { ReleaseCommentT } from '../../../releases/types'
2121import type { DiffType } from 'react-diff-view'
2222
2323export const testIDs = {
@@ -56,7 +56,7 @@ const FileName = ({
5656} : {
5757 oldPath : string
5858 newPath : string
59- type : LineChangeT
59+ type : DiffType
6060} ) => {
6161 if ( type === 'delete' ) {
6262 return < span > { oldPath } </ span >
@@ -133,19 +133,9 @@ interface CompleteDiffButtonProps extends ButtonProps {
133133const CompleteDiffButton = styled (
134134 ( { open, onClick, ...props } : CompleteDiffButtonProps ) =>
135135 open ? (
136- < Button
137- { ...props }
138- type = "ghost"
139- icon = { < RollbackOutlined /> }
140- onClick = { onClick }
141- />
136+ < Button { ...props } ghost icon = { < RollbackOutlined /> } onClick = { onClick } />
142137 ) : (
143- < Button
144- { ...props }
145- type = "ghost"
146- icon = { < CheckOutlined /> }
147- onClick = { onClick }
148- />
138+ < Button { ...props } ghost icon = { < CheckOutlined /> } onClick = { onClick } />
149139 )
150140) `
151141 ${ defaultIconButtonStyle }
@@ -187,7 +177,7 @@ const CopyPathToClipboardButton = styled(
187177 >
188178 < Button
189179 { ...props }
190- type = " ghost"
180+ ghost
191181 icon = { < CopyOutlined /> }
192182 onMouseOver = { resetCopyPathPopoverContent }
193183 />
@@ -243,7 +233,7 @@ const CopyAnchorLinksToClipboardButton = styled(
243233 >
244234 < Button
245235 { ...props }
246- type = " ghost"
236+ ghost
247237 icon = { < LinkOutlined /> }
248238 onMouseOver = { resetContent }
249239 />
@@ -295,15 +285,15 @@ interface DiffHeaderProps extends WrapperProps {
295285 diffKey : string
296286 hasDiff : boolean
297287 isDiffCollapsed : boolean
298- setIsDiffCollapsed : ( isDiffCollapsed : boolean , altKey : boolean ) => void
288+ setIsDiffCollapsed : ( isDiffCollapsed : boolean , altKey ? : boolean ) => void
299289 isDiffCompleted : boolean
300290 onCompleteDiff : ( diffKey : string ) => void
301291 onCopyPathToClipboard : ( ) => void
302292 copyPathPopoverContent : string
303293 resetCopyPathPopoverContent : ( ) => void
304294 appName : string
305295 appPackage : string
306- diffComments : string [ ]
296+ diffComments : ReleaseCommentT [ ]
307297 packageName : string
308298}
309299
0 commit comments