Antd V4 Icon Updates
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Icon, Input } from "antd";
|
||||
import { Input } from "antd";
|
||||
import { MailFilled } from "@ant-design/icons";
|
||||
import React, { forwardRef } from "react";
|
||||
function FormItemEmail(props, ref) {
|
||||
return (
|
||||
@@ -7,10 +8,10 @@ function FormItemEmail(props, ref) {
|
||||
addonAfter={
|
||||
props.email ? (
|
||||
<a href={`mailto:${props.email}`}>
|
||||
<Icon type="mail" />
|
||||
<MailFilled />
|
||||
</a>
|
||||
) : (
|
||||
<Icon type="mail" />
|
||||
<MailFilled />
|
||||
)
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user