Welcome.js 782 Bytes
Newer Older
dengxiaofeng's avatar
dengxiaofeng committed
1
import React from 'react';
2
import { Alert, Card, Typography } from 'antd';
3
import PageContainer from '@/components/BasePageContainer';
张烨's avatar
张烨 committed
4
import { connect } from 'react-redux';
dengxiaofeng's avatar
dengxiaofeng committed
5 6
import styles from './Welcome.less';

7
// eslint-disable-next-line no-unused-vars
dengxiaofeng's avatar
dengxiaofeng committed
8 9 10 11 12 13 14 15
const CodePreview = ({ children }) => (
  <pre className={styles.pre}>
    <code>
      <Typography.Text copyable>{children}</Typography.Text>
    </code>
  </pre>
);

张烨's avatar
张烨 committed
16 17 18
const mapState = store => store;

export default connect(mapState)(() => (
dengxiaofeng's avatar
dengxiaofeng committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32
  <PageContainer>
    <Card>
      <Alert
        message="更快更强的重型组件,已经发布。"
        type="success"
        showIcon
        banner
        style={{
          margin: -12,
          marginBottom: 24,
        }}
      />
    </Card>
  </PageContainer>
张烨's avatar
张烨 committed
33
));