Skip to content
Snippets Groups Projects
Unverified Commit 28c1687e authored by Tom Robinson's avatar Tom Robinson Committed by GitHub
Browse files

Merge pull request #9415 from metabase/cleanup-collection-badge

CollectionBadge cleanup
parents 2353384e 4453ea08
No related branches found
No related tags found
No related merge requests found
......@@ -13,14 +13,19 @@ import cx from "classnames";
entityType: "collections",
entityId: (state, props) => props.collectionId || "root",
wrapped: true,
loadingAndErrorWrapper: false,
properties: ["name"],
})
class CollectionBadge extends React.Component {
render() {
const { analyticsContext, object } = this.props;
const { analyticsContext, object, className } = this.props;
if (!object) {
return null;
}
return (
<Link
to={Urls.collection(object.id)}
className={cx("inline-block link")}
className={cx(className, "block link")}
data-metabase-event={`${analyticsContext};Collection Badge Click`}
>
<Flex align="center">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment