mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-18 12:23:34 +00:00
fix(datahub-web-react): Update Titles and subtitles of Settings pages (#15072)
This commit is contained in:
parent
9b212562dd
commit
b9c263b0f6
@ -1,33 +1,16 @@
|
|||||||
import { Typography } from 'antd';
|
import { PageTitle } from '@components';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components/macro';
|
import styled from 'styled-components/macro';
|
||||||
|
|
||||||
import { OwnershipList } from '@app/entityV2/ownership/OwnershipList';
|
import { OwnershipList } from '@app/entityV2/ownership/OwnershipList';
|
||||||
|
|
||||||
const PageContainer = styled.div`
|
const PageContainer = styled.div`
|
||||||
padding-top: 20px;
|
padding: 16px 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
`;
|
gap: 16px;
|
||||||
|
|
||||||
const PageHeaderContainer = styled.div`
|
|
||||||
&& {
|
|
||||||
padding-left: 24px;
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
const PageTitle = styled(Typography.Title)`
|
|
||||||
&& {
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
const ListContainer = styled.div`
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
overflow: auto;
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -36,15 +19,8 @@ const ListContainer = styled.div`
|
|||||||
export const ManageOwnership = () => {
|
export const ManageOwnership = () => {
|
||||||
return (
|
return (
|
||||||
<PageContainer>
|
<PageContainer>
|
||||||
<PageHeaderContainer>
|
<PageTitle title="Manage Ownership" subTitle="Create, edit, and remove custom Ownership Types." />
|
||||||
<PageTitle level={3}>Manage Ownership</PageTitle>
|
<OwnershipList />
|
||||||
<Typography.Paragraph type="secondary">
|
|
||||||
Create, edit, and remove custom Ownership Types.
|
|
||||||
</Typography.Paragraph>
|
|
||||||
</PageHeaderContainer>
|
|
||||||
<ListContainer>
|
|
||||||
<OwnershipList />
|
|
||||||
</ListContainer>
|
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import { red } from '@ant-design/colors';
|
import { red } from '@ant-design/colors';
|
||||||
import { DeleteOutlined, InfoCircleOutlined, PlusOutlined } from '@ant-design/icons';
|
import { DeleteOutlined, InfoCircleOutlined, PlusOutlined } from '@ant-design/icons';
|
||||||
|
import { PageTitle } from '@components';
|
||||||
import { Alert, Button, Divider, Dropdown, Empty, Modal, Pagination, Select, Typography, message } from 'antd';
|
import { Alert, Button, Divider, Dropdown, Empty, Modal, Pagination, Select, Typography, message } from 'antd';
|
||||||
import React, { useEffect, useMemo, useState } from 'react';
|
import React, { useEffect, useMemo, useState } from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
@ -23,9 +24,7 @@ import { EntityType, FacetFilterInput } from '@types';
|
|||||||
|
|
||||||
const SourceContainer = styled.div`
|
const SourceContainer = styled.div`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-top: 20px;
|
padding: 16px 20px;
|
||||||
padding-right: 40px;
|
|
||||||
padding-left: 40px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
@ -35,18 +34,6 @@ const TokensContainer = styled.div`
|
|||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const TokensHeaderContainer = styled.div`
|
|
||||||
&& {
|
|
||||||
padding-left: 0px;
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
const TokensTitle = styled(Typography.Title)`
|
|
||||||
&& {
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
const StyledAlert = styled(Alert)`
|
const StyledAlert = styled(Alert)`
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
padding-bottom: 12px;
|
padding-bottom: 12px;
|
||||||
@ -322,12 +309,7 @@ export const AccessTokens = () => {
|
|||||||
{tokensError && message.error('Failed to load tokens :(')}
|
{tokensError && message.error('Failed to load tokens :(')}
|
||||||
{revokeTokenError && message.error('Failed to update the Token :(')}
|
{revokeTokenError && message.error('Failed to update the Token :(')}
|
||||||
<TokensContainer>
|
<TokensContainer>
|
||||||
<TokensHeaderContainer>
|
<PageTitle title="Manage Access Tokens" subTitle="Manage Access Tokens for use with DataHub APIs." />
|
||||||
<TokensTitle level={2}>Manage Access Tokens</TokensTitle>
|
|
||||||
<Typography.Paragraph type="secondary">
|
|
||||||
Manage Access Tokens for use with DataHub APIs.
|
|
||||||
</Typography.Paragraph>
|
|
||||||
</TokensHeaderContainer>
|
|
||||||
</TokensContainer>
|
</TokensContainer>
|
||||||
<Divider />
|
<Divider />
|
||||||
{isTokenAuthEnabled === false && (
|
{isTokenAuthEnabled === false && (
|
||||||
|
|||||||
@ -1,27 +1,16 @@
|
|||||||
import { Typography } from 'antd';
|
import { PageTitle } from '@components';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components/macro';
|
import styled from 'styled-components/macro';
|
||||||
|
|
||||||
import { PostList } from '@app/settingsV2/posts/PostsList';
|
import { PostList } from '@app/settingsV2/posts/PostsList';
|
||||||
|
|
||||||
export const PageContainer = styled.div`
|
const PageContainer = styled.div`
|
||||||
padding-top: 20px;
|
padding: 16px 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
`;
|
gap: 16px;
|
||||||
|
|
||||||
export const PageHeaderContainer = styled.div`
|
|
||||||
&& {
|
|
||||||
padding-left: 24px;
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
export const PageTitle = styled(Typography.Title)`
|
|
||||||
&& {
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ListContainer = styled.div`
|
const ListContainer = styled.div`
|
||||||
@ -32,13 +21,11 @@ const ListContainer = styled.div`
|
|||||||
|
|
||||||
export default function ManagePosts() {
|
export default function ManagePosts() {
|
||||||
return (
|
return (
|
||||||
<PageContainer>
|
<PageContainer data-testid="managePostsV2">
|
||||||
<PageHeaderContainer data-testid="managePostsV2">
|
<PageTitle
|
||||||
<PageTitle level={3}>Home Page</PageTitle>
|
title="Home Page"
|
||||||
<Typography.Paragraph type="secondary">
|
subTitle="View and manage pinned announcements and links that appear to all users on the landing page."
|
||||||
View and manage pinned announcements and links that appear to all users on the landing page.
|
/>
|
||||||
</Typography.Paragraph>
|
|
||||||
</PageHeaderContainer>
|
|
||||||
<ListContainer>
|
<ListContainer>
|
||||||
<PostList />
|
<PostList />
|
||||||
</ListContainer>
|
</ListContainer>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user