diff --git a/libs/positions/src/lib/positions-table.spec.tsx b/libs/positions/src/lib/positions-table.spec.tsx index 64a001e6b..9b5575234 100644 --- a/libs/positions/src/lib/positions-table.spec.tsx +++ b/libs/positions/src/lib/positions-table.spec.tsx @@ -48,8 +48,8 @@ it('Render correct columns', async () => { ).toEqual([ 'Market', 'Amount', - 'Mark Price', - 'Entry Price', + 'Mark price', + 'Entry price', 'Leverage', 'Margin allocated', 'Realised PNL', @@ -131,7 +131,7 @@ it("displays properly entry, liquidation price and liquidation bar and it's inte const progressBarWidth = progressBar?.style?.width; expect(entryPrice).toEqual('13.3'); expect(liquidationPrice).toEqual('8.3'); - expect(progressBar.classList.contains('bg-danger')).toEqual(false); + expect(progressBar.classList.contains('bg-warning')).toEqual(false); expect(progressBarWidth).toEqual('20%'); await act(async () => { result.rerender( @@ -141,7 +141,7 @@ it("displays properly entry, liquidation price and liquidation bar and it's inte cells = screen.getAllByRole('gridcell'); cell = cells[3]; progressBar = cell.lastElementChild?.firstElementChild as HTMLElement; - expect(progressBar?.classList.contains('bg-danger')).toEqual(true); + expect(progressBar?.classList.contains('bg-warning')).toEqual(true); }); it('displays leverage', async () => { diff --git a/libs/positions/src/lib/positions-table.tsx b/libs/positions/src/lib/positions-table.tsx index fbb3fe011..52c74e442 100644 --- a/libs/positions/src/lib/positions-table.tsx +++ b/libs/positions/src/lib/positions-table.tsx @@ -166,7 +166,7 @@ export const PositionsTable = forwardRef((props, ref) => { }} /> ((props, ref) => { }} /> ((props, ref) => { data.marketDecimalPlaces ), value: range ? Number(((mid - min) * BigInt(100)) / range) : 0, - intent: data.lowMarginLevel ? Intent.Danger : undefined, + intent: data.lowMarginLevel ? Intent.Warning : undefined, }; }} /> diff --git a/libs/ui-toolkit/src/components/progress-bar/progress-bar.tsx b/libs/ui-toolkit/src/components/progress-bar/progress-bar.tsx index a76933d61..1d40955f3 100644 --- a/libs/ui-toolkit/src/components/progress-bar/progress-bar.tsx +++ b/libs/ui-toolkit/src/components/progress-bar/progress-bar.tsx @@ -12,13 +12,16 @@ export const ProgressBar = ({ className, intent, value }: ProgressBarProps) => { return (