Skip to content

Commit

Permalink
Resolved lint js issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JelenaTakac committed Nov 11, 2024
1 parent 854e724 commit 488178e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/components/pie-chart/chart-legend-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ const ChartLegendContent = React.forwardRef<
return (
<div
ref={ ref }
className={ cn('flex items-center justify-center gap-4', verticalAlign === 'top' ? 'pb-3' : 'pt-3', className) }
className={ cn(
'flex items-center justify-center gap-4',
verticalAlign === 'top' ? 'pb-3' : 'pt-3',
className
) }
>
{ payload.map( ( item ) => (
<div key={ item.value } className="flex items-center gap-1.5">
{ ! hideIcon && (
<div
className="h-2 w-2 shrink-0 rounded-sm"
className="h-2 w-2 shrink-0 rounded-sm"
style={ {
backgroundColor: item.color,
} }
Expand Down
8 changes: 4 additions & 4 deletions src/components/pie-chart/pie-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export interface PieChartProps {
/** Label name which will be displayed inside donut pie chart. */
labelName?: string;

/** Label name color which will be displayed inside donut pie chart. */
labelNameColor?: string;
/** Label name color which will be displayed inside donut pie chart. */
labelNameColor?: string;

/** Label value which will be displayed inside donut pie chart. */
labelValue?: number | string;
Expand All @@ -66,7 +66,7 @@ const PieChart = ( {
tooltipLabelKey,
label = false,
labelName = '',
labelNameColor = '#9CA3AF',
labelNameColor = '#9CA3AF',
labelValue,
showLegend = false,
chartWidth = 300,
Expand Down Expand Up @@ -129,7 +129,7 @@ const PieChart = ( {
x={ viewBox.cx }
dy="24"
className="text-sm"
style={{ fill: labelNameColor } }
style={ { fill: labelNameColor } }
>
{ labelName }
</tspan>
Expand Down

0 comments on commit 488178e

Please sign in to comment.