Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
fix(tip): hide dismiss button from important tip
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Apr 17, 2019
1 parent 1d08105 commit 9316d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/src/features/app/features/now/tips/custom/Custom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const Custom = ({ tip: { meta, token } }: Props) => {
const { title, text, link, important } = meta

const actions = !!link && <ExternalLink href={link}>Open</ExternalLink>
const dismiss = important && <DismissButton token={token} />
const dismiss = !important && <DismissButton token={token} />

return (
<Card title={title} extra={dismiss} actions={[actions].filter(Boolean)}>
<p>{text}</p>
{text}
</Card>
)
}

0 comments on commit 9316d76

Please sign in to comment.