react-icons/ai#AiFillSetting TypeScript Examples
The following examples show how to use
react-icons/ai#AiFillSetting.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UserInfoCard.tsx From convoychat with GNU General Public License v3.0 | 6 votes |
UserInfoCard: React.FC<IUserInfoCard> = ({
image,
name,
username,
className,
isMember,
}) => {
const { dispatch } = useModalContext();
return (
<StyledUserInfoCard isMember={isMember} className={className}>
<Flex
gap="medium"
justify={isMember ? "" : "space-around"}
align="center"
>
<Avatar size={35} src={image} />
<Flex direction="column">
<span className="userinfo__displayname">{name}</span>
<small className="textcolor--gray" title={username}>
{username?.slice(0, 15)}...
</small>
</Flex>
{!isMember && (
<Tooltip placement="right" message={<span>Settings</span>}>
<IconButton
icon={<AiFillSetting size={20} />}
onClick={() => dispatch({ type: "OPEN", modal: "UserSettings" })}
/>
</Tooltip>
)}
</Flex>
</StyledUserInfoCard>
);
}