Skip to content

Commit

Permalink
Change alert icon
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Feb 21, 2024
1 parent 40e8050 commit 93c2ac1
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/profiles/ViewProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PlusOutlined } from '@ant-design/icons'
import { PlusOutlined, WarningFilled } from '@ant-design/icons'
import { AccountId } from '@polkadot/types/interfaces'
import { isEmptyStr } from '@subsocial/utils'
import { Alert, Button } from 'antd'
Expand Down Expand Up @@ -109,7 +109,18 @@ const Component = (props: Props) => {
return (
<Section outerClassName='mb-2'>
<div className='d-flex flex-column w-100'>
{isMuted && <Alert message='⚠️ You muted this account' type='warning' className='mb-3' />}
{isMuted && (
<Alert
message={
<div className='d-flex align-items-center GapTiny'>
<WarningFilled style={{ color: 'orange' }} />
<span>You muted this account</span>
</div>
}
type='warning'
className='mb-3'
/>
)}
<div className='d-flex mb-3'>
<Avatar
size={size || LARGE_AVATAR_SIZE}
Expand Down

0 comments on commit 93c2ac1

Please sign in to comment.