22 - Generalize UI copy, remove VWCE hardcoding
This commit is contained in:
parent
ba6bb62e73
commit
ed17529906
3 changed files with 7 additions and 4 deletions
|
|
@ -26,6 +26,7 @@ interface StatsBoxProps {
|
|||
onAddPurchase?: () => void;
|
||||
onAddMilestone?: () => void;
|
||||
onUpdatePrice?: () => void;
|
||||
assetSymbol?: string;
|
||||
}
|
||||
|
||||
export default function StatsBox({
|
||||
|
|
@ -36,7 +37,8 @@ export default function StatsBox({
|
|||
className,
|
||||
onAddPurchase,
|
||||
onAddMilestone,
|
||||
onUpdatePrice
|
||||
onUpdatePrice,
|
||||
assetSymbol
|
||||
}: StatsBoxProps) {
|
||||
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
||||
|
||||
|
|
@ -78,7 +80,7 @@ export default function StatsBox({
|
|||
<div className="flex items-center space-x-2 relative">
|
||||
{stats.currentPrice && (
|
||||
<div className="text-red-500 text-sm font-mono tracking-wider">
|
||||
VWCE: {formatCurrencyDetailed(stats.currentPrice)}
|
||||
{assetSymbol ?? 'PRICE'}: {formatCurrencyDetailed(stats.currentPrice)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
|
|||
{
|
||||
id: 'milestones',
|
||||
title: 'SET MILESTONES',
|
||||
description: 'Define your investment goals',
|
||||
description: 'Define your goals',
|
||||
completed: false,
|
||||
required: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ export default function Dashboard() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Head title="VWCE Tracker" />
|
||||
<Head title="incr" />
|
||||
|
||||
{/* Stacked Layout */}
|
||||
<div className="min-h-screen bg-black">
|
||||
|
|
@ -286,6 +286,7 @@ export default function Dashboard() {
|
|||
onAddPurchase={() => setActiveForm('purchase')}
|
||||
onAddMilestone={() => setActiveForm('milestone')}
|
||||
onUpdatePrice={() => setActiveForm('price')}
|
||||
assetSymbol={currentAsset?.symbol}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue