Skip to content

Commit ab5e461

Browse files
temp
1 parent b0e32d9 commit ab5e461

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

packages/ui/src/views/labels/components/label-marker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const LabelMarker: FC<LabelMarkerProps> = ({
2828
const hasDeleteButton = !!onDelete
2929

3030
return (
31-
<div className={cn('flex max-w-full items-center gap-2 opa relative', className)}>
31+
<div className={cn('flex max-w-full items-center gap-2 opa relative', className)} data-label-marker>
3232
<div
3333
className={cn(
3434
`grid text-1 leading-4 h-5 py-px px-2 items-center font-medium rounded overflow-hidden w-fit bg-label-background-${color} text-label-foreground-${color}`,
@@ -65,7 +65,7 @@ export const LabelMarker: FC<LabelMarkerProps> = ({
6565
</Button>
6666
)}
6767

68-
{isDynamic && <IconV2 name="plus-circle" size="2xs" className="min-w-3 text-icons-4" role="presentation" />}
68+
{isDynamic && <IconV2 name="plus-circle" size="2xs" className="text-icons-4 min-w-3" role="presentation" />}
6969
</div>
7070
)
7171
}

packages/ui/src/views/labels/components/label-tag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getScopeType, IconV2, Layout, scopeTypeToIconMap, Tag, TagProps } from
44

55
import { ILabelType } from '../types'
66

7-
type LabelTagProps = {
7+
export type LabelTagProps = {
88
scope?: ILabelType['scope']
99
color: ILabelType['color']
1010
labelKey: ILabelType['key']

packages/ui/src/views/repo/pull-request/components/labels/pull-request-labels-list.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ import { FC } from 'react'
22

33
import { Text } from '@/components'
44
import { useTranslation } from '@/context'
5-
import { LabelMarkerProps, LabelTag, PRListLabelType } from '@/views'
5+
import { LabelTag, LabelTagProps, PRListLabelType } from '@/views'
66
import { cn } from '@utils/cn'
77

8-
type LabelListLabel = PRListLabelType & Pick<LabelMarkerProps, 'onDelete'>
8+
type LabelListLabel = PRListLabelType &
9+
Omit<LabelTagProps, 'labelKey'> & {
10+
onDelete?: () => void
11+
}
912

1013
interface LabelsListProps {
1114
labels: LabelListLabel[]

0 commit comments

Comments
 (0)