2023-05-09 19:24:50 +08:00
|
|
|
import { ConfigProvider, message } from 'antd';
|
2023-05-23 13:39:05 +08:00
|
|
|
import React from 'react';
|
2023-05-09 19:24:50 +08:00
|
|
|
|
|
|
|
/** Test usage. Do not use in your production. */
|
|
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPanel } = message;
|
|
|
|
|
|
|
|
export default () => (
|
2023-05-23 13:39:05 +08:00
|
|
|
<>
|
|
|
|
<ConfigProvider
|
|
|
|
theme={{
|
|
|
|
components: {
|
|
|
|
Message: {
|
|
|
|
contentPadding: 40,
|
|
|
|
contentBg: '#e6f4ff',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<InternalPanel content="Hello World!" type="error" />
|
|
|
|
</ConfigProvider>
|
|
|
|
<ConfigProvider
|
|
|
|
theme={{
|
|
|
|
components: {
|
|
|
|
Message: {
|
|
|
|
colorBgElevated: '#e6f4ff',
|
|
|
|
},
|
2023-05-09 19:24:50 +08:00
|
|
|
},
|
2023-05-23 13:39:05 +08:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
<InternalPanel content="Hello World!" type="error" />
|
|
|
|
</ConfigProvider>
|
|
|
|
</>
|
2023-05-09 19:24:50 +08:00
|
|
|
);
|