Skip to content

Commit

Permalink
fix: adjust the layout for page (#6909) (#6910)
Browse files Browse the repository at this point in the history
Co-authored-by: 青湛 <[email protected]>
  • Loading branch information
github-actions[bot] and mintsweet authored Feb 2, 2024
1 parent 5764c8d commit 31c6a63
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
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

0 comments on commit 31c6a63

Please sign in to comment.