Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions config-ui/src/routes/api-keys/api-keys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import { useState, useMemo } from 'react';
import { PlusOutlined } from '@ant-design/icons';
import { Table, Modal, Input, Select, Button, Tag } from 'antd';
import { Flex, Table, Modal, Input, Select, Button, Tag } from 'antd';
import dayjs from 'dayjs';

import API from '@/api';
Expand Down Expand Up @@ -94,13 +94,13 @@ export const ApiKeys = () => {
return (
<PageHeader
breadcrumbs={[{ name: 'API Keys', path: PATHS.APIKEYS() }]}
extra={
description="You can generate and manage your API keys to access the DevLake API."
>
<Flex justify="flex-end">
<Button type="primary" icon={<PlusOutlined />} onClick={() => setModal('create')}>
New API Key
</Button>
}
>
<p>You can generate and manage your API keys to access the DevLake API.</p>
</Flex>
<Table
rowKey="id"
size="middle"
Expand Down
8 changes: 3 additions & 5 deletions config-ui/src/routes/blueprint/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ export const BlueprintHomePage = () => {
{ name: 'Advanced', path: PATHS.BLUEPRINTS() },
{ name: 'Blueprints', path: PATHS.BLUEPRINTS() },
]}
extra={
<Button type="primary" icon={<PlusOutlined />} onClick={handleShowDialog}>
New Blueprint
</Button>
}
description="This is a complete list of all Blueprints you have created, whether they belong to Projects or not."
>
<Flex vertical gap="middle">
Expand All @@ -111,6 +106,9 @@ export const BlueprintHomePage = () => {
</Radio>
))}
</Radio.Group>
<Button type="primary" icon={<PlusOutlined />} onClick={handleShowDialog}>
New Blueprint
</Button>
</Flex>
<Table
rowKey="id"
Expand Down
10 changes: 4 additions & 6 deletions config-ui/src/routes/project/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import { useState, useMemo } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import { PlusOutlined, SettingOutlined } from '@ant-design/icons';
import { Table, Button, Modal, Input, Checkbox, message } from 'antd';
import { Flex, Table, Button, Modal, Input, Checkbox, message } from 'antd';
import dayjs from 'dayjs';

import API from '@/api';
Expand Down Expand Up @@ -118,14 +118,12 @@ export const ProjectHomePage = () => {
};

return (
<PageHeader
breadcrumbs={[{ name: 'Projects', path: PATHS.PROJECTS() }]}
extra={
<PageHeader breadcrumbs={[{ name: 'Projects', path: PATHS.PROJECTS() }]}>
<Flex style={{ marginBottom: 16 }} justify="flex-end">
<Button type="primary" icon={<PlusOutlined />} onClick={handleShowDialog}>
New Project
</Button>
}
>
</Flex>
<Table
rowKey="name"
size="middle"
Expand Down