Skip to content

Commit 06820a6

Browse files
committed
fix(ModelRankingPage): route to existing page and update publish button appearance
1 parent 99d7ad0 commit 06820a6

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

frontend/src/pages/ModelRankingPage.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { useNavigate } from 'react-router-dom';
3-
import { Button, Result } from 'antd';
4-
import { TrophyOutlined } from '@ant-design/icons';
3+
import { Button, Result, Space } from 'antd';
4+
import { TrophyOutlined, PlusOutlined } from '@ant-design/icons';
55

66
const ModelRankingPage: React.FC = () => {
77
const navigate = useNavigate();
@@ -13,14 +13,18 @@ const ModelRankingPage: React.FC = () => {
1313
title="Model Ranking"
1414
subTitle="The leaderboard is coming soon. Check back after running your first experiments."
1515
extra={
16-
<div>
16+
<Space>
1717
<Button type="primary" onClick={() => navigate('/')}>
1818
Back to Home
1919
</Button>
20-
<Button type="primary" onClick={() => navigate('/publish')}>
21-
Add your experiment to leaderboard
20+
<Button
21+
type="primary"
22+
icon={<PlusOutlined />}
23+
onClick={() => navigate('/ranking/publish')}
24+
>
25+
Publish experiment
2226
</Button>
23-
</div>
27+
</Space>
2428
}
2529
/>
2630
</div>

0 commit comments

Comments
 (0)