clean up and style tweaks
This commit is contained in:
20
web/pages/components/info-tip.tsx
Normal file
20
web/pages/components/info-tip.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { InfoCircleOutlined } from "@ant-design/icons";
|
||||
import { Tooltip } from "antd";
|
||||
|
||||
interface InfoTipProps {
|
||||
tip: string | null;
|
||||
}
|
||||
|
||||
export default function InfoTip({ tip }: InfoTipProps) {
|
||||
if (tip === '' || tip === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<span className="info-tip">
|
||||
<Tooltip title={tip}>
|
||||
<InfoCircleOutlined />
|
||||
</Tooltip>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user