mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +08:00
22 lines
610 B
TypeScript
22 lines
610 B
TypeScript
|
import React from 'react';
|
||
|
import { createFromIconfontCN } from '@ant-design/icons';
|
||
|
import { Space } from 'antd';
|
||
|
|
||
|
const IconFont = createFromIconfontCN({
|
||
|
scriptUrl: [
|
||
|
'//at.alicdn.com/t/font_1788044_0dwu4guekcwr.js', // icon-javascript, icon-java, icon-shoppingcart (overrided)
|
||
|
'//at.alicdn.com/t/font_1788592_a5xf2bdic3u.js', // icon-shoppingcart, icon-python
|
||
|
],
|
||
|
});
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Space>
|
||
|
<IconFont type="icon-javascript" />
|
||
|
<IconFont type="icon-java" />
|
||
|
<IconFont type="icon-shoppingcart" />
|
||
|
<IconFont type="icon-python" />
|
||
|
</Space>
|
||
|
);
|
||
|
|
||
|
export default App;
|