Skip to content

Commit 0c21aee

Browse files
Vinay VkVinay Vk
authored andcommitted
Fix Prettier formatting in weekly tools summary files
1 parent 32c99da commit 0c21aee

3 files changed

Lines changed: 24 additions & 8 deletions

File tree

src/components/BMDashboard/WeeklyProjectSummary/ToolStatusDonutChart/ToolStatusDonutChart.jsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@ const renderCustomizedLabel = ({ cx, cy, midAngle, outerRadius, percent, width }
3434
};
3535

3636
// Custom tooltip component
37-
const CustomTooltip = ({ active, payload, total, hasNoData, toolName, projectName, toolId, darkMode }) => {
37+
const CustomTooltip = ({
38+
active,
39+
payload,
40+
total,
41+
hasNoData,
42+
toolName,
43+
projectName,
44+
toolId,
45+
darkMode,
46+
}) => {
3847
if (!active || !payload || !payload.length) {
3948
return null;
4049
}
@@ -53,7 +62,9 @@ const CustomTooltip = ({ active, payload, total, hasNoData, toolName, projectNam
5362
maxWidth: '200px',
5463
}}
5564
>
56-
<div style={{ fontWeight: '600', color: darkMode ? '#e0e0e0' : '#333' }}>📊 No Tools Match</div>
65+
<div style={{ fontWeight: '600', color: darkMode ? '#e0e0e0' : '#333' }}>
66+
📊 No Tools Match
67+
</div>
5768
<div style={{ color: darkMode ? '#c5d0dd' : '#666', fontSize: '12px' }}>
5869
No tools match the selected combination
5970
</div>
@@ -76,7 +87,9 @@ const CustomTooltip = ({ active, payload, total, hasNoData, toolName, projectNam
7687
}}
7788
>
7889
<div style={{ fontWeight: '600', color: darkMode ? '#e0e0e0' : '#333' }}>{toolName}</div>
79-
<div style={{ color: darkMode ? '#c5d0dd' : '#666', fontSize: '12px' }}>❌ Not used in this project</div>
90+
<div style={{ color: darkMode ? '#c5d0dd' : '#666', fontSize: '12px' }}>
91+
❌ Not used in this project
92+
</div>
8093
</div>
8194
);
8295
}

src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsAvailabilityPage.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ function ToolsAvailabilityPage() {
113113
};
114114

115115
return (
116-
<div
117-
className={`tools-availability-page ${darkMode ? 'dark-mode' : ''}`}
118-
>
116+
<div className={`tools-availability-page ${darkMode ? 'dark-mode' : ''}`}>
119117
<div className="tools-availability-content">
120118
<div className="tools-chart-filters">
121119
<div className="filter-group">

src/components/BMDashboard/WeeklyProjectSummary/Tools/ToolsHorizontalBarChart.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ function ToolsHorizontalBarChart({ darkMode: darkModeProp }) {
395395
transition: 'filter 0.25s ease, opacity 0.25s ease',
396396
}}
397397
>
398-
<div style={{ textAlign: 'center', width: '100%', maxWidth: '360px', padding: '0 12px' }}>
398+
<div
399+
style={{ textAlign: 'center', width: '100%', maxWidth: '360px', padding: '0 12px' }}
400+
>
399401
<div
400402
style={{
401403
fontSize: '28px',
@@ -452,7 +454,10 @@ function ToolsHorizontalBarChart({ darkMode: darkModeProp }) {
452454
)}
453455

454456
{selectedProject?.value && !loading && !error && data.length > 0 && (
455-
<div className={styles['tools-horizontal-bar-chart-content']} style={{ flex: 1, minHeight: 0 }}>
457+
<div
458+
className={styles['tools-horizontal-bar-chart-content']}
459+
style={{ flex: 1, minHeight: 0 }}
460+
>
456461
<ResponsiveContainer width="100%" height={Math.max(data.length * 100 + 60, 320)}>
457462
<BarChart
458463
layout="vertical"

0 commit comments

Comments
 (0)