- {stringGetter({ key: STRING_KEYS.OPEN_POSITIONS })}{' '}
+ {stringGetter({ key: STRING_KEYS.POSITIONS })}{' '}
{numPositions}
diff --git a/src/pages/vaults/VaultLockedSharesTable.tsx b/src/pages/vaults/VaultLockedSharesTable.tsx
index b5a0e86d1..efdae70d0 100644
--- a/src/pages/vaults/VaultLockedSharesTable.tsx
+++ b/src/pages/vaults/VaultLockedSharesTable.tsx
@@ -17,7 +17,7 @@ import { Button } from '@/components/Button';
import { Output, OutputType } from '@/components/Output';
import { ColumnDef, Table } from '@/components/Table';
-import { runIf } from '@/lib/do';
+import { mapIfPresent } from '@/lib/do';
export const VaultLockedSharesCard = ({ className }: { className?: string }) => {
const stringGetter = useStringGetter();
@@ -75,7 +75,7 @@ const VaultLockedSharesTable = ({
getCellValue: (row) => row.unlockBlockHeight,
label: stringGetter({ key: STRING_KEYS.AVAILABLE }),
renderCell: ({ unlockBlockHeight }) => {
- const estimatedUnlockMs = runIf(
+ const estimatedUnlockMs = mapIfPresent(
unlockBlockHeight,
height,
(unblock, actual) => new Date().valueOf() + (unblock - actual) * 1000
diff --git a/src/pages/vaults/VaultPnlChart.tsx b/src/pages/vaults/VaultPnlChart.tsx
index e32fe158b..2fc12b804 100644
--- a/src/pages/vaults/VaultPnlChart.tsx
+++ b/src/pages/vaults/VaultPnlChart.tsx
@@ -162,7 +162,7 @@ export const VaultPnlChart = ({ className }: VaultPnlChartProps) => {
}, []);
const chartDotsBackground = useAppSelector(getChartDotBackground);
- const { isMobile } = useBreakpoints();
+ const { isMobile, isDesktopSmall } = useBreakpoints();
const onVisibleDataChange = useCallback((inRangeData: VaultPnlDatum[]) => {
setVisibleTimeRange(
@@ -201,7 +201,11 @@ export const VaultPnlChart = ({ className }: VaultPnlChartProps) => {
{hoveredTime != null ? (
-
+
) : (
)}
@@ -232,7 +236,7 @@ export const VaultPnlChart = ({ className }: VaultPnlChartProps) => {
series={series}
yAxisOrientation="right"
margin={{
- left: 0,
+ left: isDesktopSmall ? 20 : 0,
right: isMobile ? 20 : 60,
top: 24,
bottom: 32,
@@ -240,8 +244,8 @@ export const VaultPnlChart = ({ className }: VaultPnlChartProps) => {
padding={{
left: 0.01,
right: 0.01,
- top: 0.05,
- bottom: 0,
+ top: 0.1,
+ bottom: 0.1,
}}
tickFormatY={tickFormatY}
onVisibleDataChange={onVisibleDataChange}
diff --git a/src/pages/vaults/VaultPositionsTable.tsx b/src/pages/vaults/VaultPositionsTable.tsx
index 047cb0a6a..6c2edf011 100644
--- a/src/pages/vaults/VaultPositionsTable.tsx
+++ b/src/pages/vaults/VaultPositionsTable.tsx
@@ -29,7 +29,7 @@ import { orEmptyRecord } from '@/lib/typeUtils';
type VaultTableRow = VaultPosition;
-const VAULT_PAGE_SIZE = 50 as const;
+const VAULT_PAGE_SIZE = 20 as const;
export const VaultPositionsTable = ({ className }: { className?: string }) => {
const stringGetter = useStringGetter();
const navigate = useNavigate();
diff --git a/src/views/ExportHistoryDropdown.tsx b/src/views/ExportHistoryDropdown.tsx
index 9887c3bbc..452ed1726 100644
--- a/src/views/ExportHistoryDropdown.tsx
+++ b/src/views/ExportHistoryDropdown.tsx
@@ -358,7 +358,7 @@ export const ExportHistoryDropdown = (props: ExportHistoryDropdownProps) => {
testFlags.enableVaults && {
label: (
{