I've tried looking for solutions regarding this issue but nothing to have solve my problem with this. These are the posts I've looked up :
- Why my label of Icon in antd is not displayed
- Why are the icons not showing up on my Ant Design sider?
I've not tried the second solution as this is a project in a company and I do not want to upgrade the version on my own without any permission.
Here's my code and imports:
import "antd/dist/antd.css";
import {Button} from 'antd';
import {TwitterOutlined} from '@ant-design/icons'; //import icons
//here is where i use the TwitterOutlined which is the icon
<Button type="link" href={links[3]} target="_blank" icon={<TwitterOutlined />}>Twitter</Button>
But the icon isn't showing up inside the button so I would appreciate if anyone knows what is exactly wrong with my imports or anything.