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