mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-13 01:48:33 +00:00
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import { Typography } from 'antd';
|
|
import React from 'react';
|
|
import styled from 'styled-components/macro';
|
|
import { PostList } from './PostsList';
|
|
|
|
const PageContainer = styled.div`
|
|
padding-top: 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;
|
|
`;
|
|
|
|
export default function ManagePosts() {
|
|
return (
|
|
<PageContainer>
|
|
<PageHeaderContainer>
|
|
<PageTitle level={3}>Home Page Posts</PageTitle>
|
|
<Typography.Paragraph type="secondary">
|
|
View and manage pinned posts that appear to all users on the landing page.
|
|
</Typography.Paragraph>
|
|
</PageHeaderContainer>
|
|
<ListContainer>
|
|
<PostList />
|
|
</ListContainer>
|
|
</PageContainer>
|
|
);
|
|
}
|