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