Skip to content

Commit 2600ab9

Browse files
committed
cumulative marker
1 parent 13e0151 commit 2600ab9

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

packages/app/src/components/PeriodHeader.tsx

+13-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Image from 'next/image';
44
import { useContext } from 'react';
55
import { FaRegChartBar, FaCubes, FaRegCalendar } from 'react-icons/fa';
66
import { IoDocumentTextOutline } from 'react-icons/io5';
7+
import { LiaRulerVerticalSolid } from 'react-icons/lia';
78

89
import {
910
Tooltip,
@@ -101,8 +102,8 @@ const PeriodHeader = () => {
101102
</a>
102103

103104
<div className="inline-flex items-center">
104-
<span className="inline-block mr-1.5">
105-
<FaRegChartBar />
105+
<span className="inline-block mr-1">
106+
<LiaRulerVerticalSolid />
106107
</span>
107108
<span className="font-medium mr-1">Market Price Range:</span>
108109
<NumberDisplay value={minPrice} />
@@ -130,6 +131,16 @@ const PeriodHeader = () => {
130131
</Tooltip>
131132
</TooltipProvider>
132133
</div>
134+
135+
<div className="inline-flex items-center">
136+
<span className="inline-block mr-1.5">
137+
<FaRegChartBar />
138+
</span>
139+
<span className="font-medium mr-1">Market Type:</span>
140+
<span>
141+
{market?.isCumulative ? 'Cumulative Spent' : 'Average Price'}
142+
</span>
143+
</div>
133144
</>
134145
);
135146

packages/app/src/lib/context/FoilProvider.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export interface Market {
1717
vaultAddress: string;
1818
collateralAsset: string;
1919
owner: string;
20+
isCumulative: boolean;
2021
resource: {
2122
id: number;
2223
name: string;

0 commit comments

Comments
 (0)