- Created .gitignore to exclude sensitive files and directories. - Added API documentation in API_DOCUMENTATION.md. - Included deployment instructions in DEPLOYMENT.md. - Established project structure documentation in PROJECT_STRUCTURE.md. - Updated README.md with project status and team information. - Added recommendations and status tracking documents. - Introduced testing guidelines in TESTING.md. - Set up CI workflow in .github/workflows/ci.yml. - Created Dockerfile for backend and frontend setups. - Added various service and utility files for backend functionality. - Implemented frontend components and pages for user interface. - Included mobile app structure and services. - Established scripts for deployment across multiple chains.
25 lines
662 B
TypeScript
25 lines
662 B
TypeScript
'use client'
|
|
|
|
interface ChartTooltipProps {
|
|
active?: boolean
|
|
payload?: any[]
|
|
label?: string
|
|
}
|
|
|
|
export function ChartTooltip({ active, payload, label }: ChartTooltipProps) {
|
|
if (active && payload && payload.length) {
|
|
return (
|
|
<div className="bg-white p-3 border border-gray-200 rounded-lg shadow-lg">
|
|
<p className="font-semibold mb-2">{label}</p>
|
|
{payload.map((entry, index) => (
|
|
<p key={index} style={{ color: entry.color }} className="text-sm">
|
|
{entry.name}: {typeof entry.value === 'number' ? entry.value.toLocaleString() : entry.value}
|
|
</p>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|
|
return null
|
|
}
|
|
|