mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 21:18:01 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
import React from 'react';
|
|
import { QRCode, Space, theme } from 'antd';
|
|
|
|
const { useToken } = theme;
|
|
|
|
const App: React.FC = () => {
|
|
const { token } = useToken();
|
|
return (
|
|
<Space>
|
|
<QRCode value="https://ant.design/" color={token.colorSuccessText} />
|
|
<QRCode
|
|
value="https://ant.design/"
|
|
color={token.colorInfoText}
|
|
bgColor={token.colorBgLayout}
|
|
/>
|
|
</Space>
|
|
);
|
|
};
|
|
|
|
export default App;
|