diff --git a/apps/trading/client-pages/team/team.tsx b/apps/trading/client-pages/team/team.tsx
index 35d36acee..b23ef2cfa 100644
--- a/apps/trading/client-pages/team/team.tsx
+++ b/apps/trading/client-pages/team/team.tsx
@@ -1,3 +1,10 @@
+import {
+ useState,
+ type ReactNode,
+ type ButtonHTMLAttributes,
+ type TdHTMLAttributes,
+ type ThHTMLAttributes,
+} from 'react';
import {
TradingButton as Button,
Indicator,
@@ -9,68 +16,83 @@ import {
TradingDropdownTrigger,
VegaIcon,
VegaIconNames,
+ Tooltip,
} from '@vegaprotocol/ui-toolkit';
import classNames from 'classnames';
-import {
- useState,
- type ReactNode,
- type ButtonHTMLAttributes,
- type TdHTMLAttributes,
- type ThHTMLAttributes,
-} from 'react';
+import BigNumber from 'bignumber.js';
export const Team = () => {
const [showGames, setShowGames] = useState(true);
return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Favorite game
- - TODO:
-
-
-
- - Last 5 game results
- -
- {new Array(4).fill(null).map((_, i) => {
- return {i}Th;
- })}
-
-
-
-
-
- setShowGames(true)}>
- Games (7)
-
- setShowGames(false)}>
- Members (486)
-
-
- {showGames ? : }
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ tooltip={'PnL description'}
+ />
+
+
+
+
+ - Favorite game
+ - TODO:
+
+
+
+ - Last 5 game results
+ -
+ {new Array(4).fill(null).map((_, i) => {
+ return {i}Th;
+ })}
+
+
+
+
+
+ setShowGames(true)}>
+ Games (7)
+
+ setShowGames(false)}
+ >
+ Members (486)
+
+
+ {showGames ? : }
+
+
);
};
@@ -122,11 +144,30 @@ const StatList = ({ children }: { children: ReactNode }) => {
return
{children}
;
};
-const Stat = ({ value, label }: { value: ReactNode; label: ReactNode }) => {
+const Stat = ({
+ value,
+ label,
+ tooltip,
+}: {
+ value: ReactNode;
+ label: ReactNode;
+ tooltip?: string;
+}) => {
return (
{value}
- {label}
+
+ {tooltip ? (
+
+
+ {label}
+
+
+
+ ) : (
+ label
+ )}
+
);
};
@@ -174,10 +215,13 @@ const JoinButton = ({ joined }: { joined: boolean }) => {
const [open, setOpen] = useState(false);
if (joined) {
return (
-
+
{
return ;
};
+
+const PnlLabel = ({ value }: { value: string }) => {
+ const isUp = new BigNumber(value).isGreaterThan(0);
+ return (
+
+ PnL{' '}
+
+ {isUp ? '+' : ''}
+ {value.toString()}%
+
+
+ );
+};
diff --git a/apps/trading/public/cover.png b/apps/trading/public/cover.png
new file mode 100644
index 000000000..8fe83c013
Binary files /dev/null and b/apps/trading/public/cover.png differ