@@ -8,10 +8,6 @@ export interface DiffBadgeProps extends BadgeProps {
88 icon ?: string ;
99}
1010
11- type CloseBadgeProps = {
12- className ?: string ;
13- } ;
14-
1511export type BadgeType =
1612 | typeof BadgeAdded
1713 | typeof BadgeRemoved
@@ -53,10 +49,6 @@ export const BadgeAdded = ({ className, ...props }: DiffBadgeProps) => {
5349 ) ;
5450} ;
5551
56- export const CloseBadgeAdded = ( ) => {
57- return < CloseBadge className = "bg-green-200 text-green-800" /> ;
58- } ;
59-
6052export const BadgeRemoved = ( { className, ...props } : DiffBadgeProps ) => {
6153 return (
6254 < BadgeUnchanged
@@ -67,10 +59,6 @@ export const BadgeRemoved = ({ className, ...props }: DiffBadgeProps) => {
6759 ) ;
6860} ;
6961
70- export const CloseBadgeRemoved = ( ) => {
71- return < CloseBadge className = "bg-red-200 text-red-800" /> ;
72- } ;
73-
7462export const BadgeConflict = ( { className, ...props } : DiffBadgeProps ) => {
7563 return (
7664 < BadgeUnchanged
@@ -81,10 +69,6 @@ export const BadgeConflict = ({ className, ...props }: DiffBadgeProps) => {
8169 ) ;
8270} ;
8371
84- export const CloseBadgeConflict = ( ) => {
85- return < CloseBadge className = "bg-yellow-200 text-yellow-800" /> ;
86- } ;
87-
8872export const BadgeUpdated = ( { className, ...props } : DiffBadgeProps ) => {
8973 return (
9074 < BadgeUnchanged
@@ -94,20 +78,3 @@ export const BadgeUpdated = ({ className, ...props }: DiffBadgeProps) => {
9478 />
9579 ) ;
9680} ;
97-
98- export const CloseBadgeUpdated = ( ) => {
99- return < CloseBadge className = "bg-blue-200 text-blue-800" /> ;
100- } ;
101-
102- const CloseBadge = ( { className } : CloseBadgeProps ) => {
103- return (
104- < div
105- className = { classNames (
106- "-top-2 -right-2 absolute flex items-center justify-center rounded-full border-2 border-white" ,
107- className
108- ) }
109- >
110- < Icon icon = "mdi:close" size = { 1 } />
111- </ div >
112- ) ;
113- } ;
0 commit comments