Skip to content

Commit 2232a83

Browse files
fix: move predict alert to profit over time
1 parent 4855b26 commit 2232a83

2 files changed

Lines changed: 32 additions & 32 deletions

File tree

apps/predict-ui/src/components/Performance.tsx

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { InfoCircleOutlined, WarningOutlined } from '@ant-design/icons';
2-
import { Alert, Col, Flex, Row, Tooltip, Typography } from 'antd';
1+
import { InfoCircleOutlined } from '@ant-design/icons';
2+
import { Col, Flex, Row, Tooltip, Typography } from 'antd';
33
import { useMemo } from 'react';
44

55
import { CURRENCY, CurrencyCode } from '../constants/currency';
@@ -69,34 +69,6 @@ export const AgentPerformance = ({ performance }: { performance: AgentMetricsRes
6969
Performance
7070
</Title>
7171

72-
<Alert
73-
// TODO: temporarily added until we use new merged LM&MM subgraph. Remove when not needed
74-
message={
75-
<Flex gap={8} vertical>
76-
<span style={{ fontWeight: 500 }}>Data update in progress</span>
77-
<span>
78-
Mech fees for invalid markets and markets in which agents did not place bets are
79-
currently unaccounted for. This leads to an underreporting of costs. A fix is in
80-
progress.
81-
</span>
82-
</Flex>
83-
}
84-
type="warning"
85-
showIcon
86-
icon={
87-
<WarningOutlined
88-
style={{ fontSize: 18, marginTop: '2px', color: 'rgba(255, 255, 0, 1)' }}
89-
/>
90-
}
91-
style={{
92-
padding: '12px',
93-
alignItems: 'flex-start',
94-
background: 'rgba(255, 255, 0, 0.1)',
95-
borderColor: 'rgba(255, 255, 0, 0.1)',
96-
color: 'rgba(255, 255, 0, 1)',
97-
}}
98-
/>
99-
10072
<Row gutter={[24, 16]} align="middle" className="m-0">
10173
{performanceItems.map((item) => (
10274
<Col lg={12} sm={12} xs={24} className="p-0" key={item.title}>

apps/predict-ui/src/components/ProfitOverTime/ProfitOverTime.tsx

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { LineChartOutlined } from '@ant-design/icons';
2-
import { Flex, Segmented, Spin, Typography } from 'antd';
1+
import { LineChartOutlined, WarningOutlined } from '@ant-design/icons';
2+
import { Alert, Flex, Segmented, Spin, Typography } from 'antd';
33
import { useMemo, useState } from 'react';
44
import styled from 'styled-components';
55

@@ -64,6 +64,34 @@ export const ProfitOverTime = () => {
6464
)}
6565
</Flex>
6666

67+
<Alert
68+
// TODO: temporarily added until we use new merged LM&MM subgraph. Remove when not needed
69+
message={
70+
<Flex gap={8} vertical>
71+
<span style={{ fontWeight: 500 }}>Data update in progress</span>
72+
<span>
73+
Mech fees for invalid markets and markets in which agents did not place bets are
74+
currently unaccounted for. This leads to an underreporting of costs. A fix is in
75+
progress.
76+
</span>
77+
</Flex>
78+
}
79+
type="warning"
80+
showIcon
81+
icon={
82+
<WarningOutlined
83+
style={{ fontSize: 18, marginTop: '2px', color: 'rgba(255, 255, 0, 1)' }}
84+
/>
85+
}
86+
style={{
87+
padding: '12px',
88+
alignItems: 'flex-start',
89+
background: 'rgba(255, 255, 0, 0.1)',
90+
borderColor: 'rgba(255, 255, 0, 0.1)',
91+
color: 'rgba(255, 255, 0, 1)',
92+
}}
93+
/>
94+
6795
{isLoading ? (
6896
<Container justify="center" align="center">
6997
<Spin />

0 commit comments

Comments
 (0)