Skip to content

Commit 9c2240f

Browse files
committed
minor
1 parent 3e642fc commit 9c2240f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

test_app/resources/data-visualization.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ const DataVisualization: React.FC<DataVisualizationProps> = ({
181181
stroke="white"
182182
strokeWidth="2"
183183
style={{ cursor: 'pointer' }}
184-
title={`${data[index].label}: ${data[index].value}`}
185-
/>
184+
>
185+
<title>{`${data[index].label}: ${data[index].value}`}</title>
186+
</circle>
186187
))}
187188

188189
{/* Labels */}
@@ -248,8 +249,9 @@ const DataVisualization: React.FC<DataVisualizationProps> = ({
248249
stroke="white"
249250
strokeWidth="2"
250251
style={{ cursor: 'pointer' }}
251-
title={`${point.label}: ${point.value} (${(percentage * 100).toFixed(1)}%)`}
252-
/>
252+
>
253+
<title>{`${point.label}: ${point.value} (${(percentage * 100).toFixed(1)}%)`}</title>
254+
</path>
253255
)
254256
})}
255257
</svg>

test_app/resources/kanban-board.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface KanbanBoardProps {
1616

1717
const KanbanBoard: React.FC<KanbanBoardProps> = ({ initialTasks = [] }) => {
1818
const [tasks, setTasks] = useState<Task[]>(initialTasks)
19-
const [newTask, setNewTask] = useState({ title: '', description: '', priority: 'medium' as const })
19+
const [newTask, setNewTask] = useState<{ title: string; description: string; priority: Task['priority'] }>({ title: '', description: '', priority: 'medium' })
2020

2121
// Load tasks from URL parameters or use defaults
2222
useEffect(() => {

0 commit comments

Comments
 (0)