Prefer wrapped Compound React icon assets (#122)
* Prefer wrapped Compound React icon assets Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add eslint rule for CDT svg imports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix height Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
0a9b4aecd3
commit
7ef8663388
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import React, { ComponentProps, forwardRef } from "react";
|
||||
import { Icon } from "@vector-im/compound-design-tokens/icons/threads-solid.svg";
|
||||
import ThreadsSolidIcon from "@vector-im/compound-design-tokens/assets/web/icons/threads-solid";
|
||||
import classNames from "classnames";
|
||||
import { IconButton, Text, Tooltip } from "@vector-im/compound-web";
|
||||
|
||||
@@ -51,7 +51,7 @@ export const ThreadsActivityCentreButton = forwardRef<HTMLButtonElement, Threads
|
||||
ref={ref}
|
||||
>
|
||||
<>
|
||||
<Icon className="mx_ThreadsActivityCentreButton_Icon" />
|
||||
<ThreadsSolidIcon className="mx_ThreadsActivityCentreButton_Icon" />
|
||||
{/* This is dirty, but we need to add the label to the indicator icon */}
|
||||
{displayLabel && (
|
||||
<Text
|
||||
|
||||
Reference in New Issue
Block a user