-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix custom task icon #1560
fix: fix custom task icon #1560
Conversation
📦 Next.js Bundle Analysis for instillai-consoleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
1 similar comment
📦 Next.js Bundle Analysis for instillai-consoleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
<ComplicateIcons.TaskCustom | ||
className={className ?? "h-4 w-4"} | ||
pathColor="stroke-semantic-fg-primary" | ||
/> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orangecoloured We can use cn and let the consumer decide how to override the default style h-4 w-4
@@ -61,7 +61,7 @@ export const ModelsTable = (props: ModelsTableProps) => { | |||
secondaryLink={null} | |||
secondaryText={label} | |||
iconElement={getIcon( | |||
`w-4 h-4 ${["TASK_CHAT"].includes(row.original.task || "") ? "stroke-semantic-fg-primary [&>*]:!stroke-semantic-fg-primary" : "[&>*]:!fill-semantic-fg-primary"}`, | |||
`w-4 h-4 ${["TASK_CHAT", "TASK_CUSTOM"].includes(row.original.task || "") ? "stroke-semantic-fg-primary [&>*]:!stroke-semantic-fg-primary" : "[&>*]:!fill-semantic-fg-primary"}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orangecoloured We can use cn here
cn("w-4 h-4", .......) it will be easier to read compare to template string
bc4e3f3
to
9eb5acc
Compare
📦 Next.js Bundle Analysis for instillai-consoleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Co-authored-by: Po Chun Chiu <[email protected]>
📦 Next.js Bundle Analysis for instillai-consoleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
📦 Next.js Bundle Analysis for instillai-consoleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🤖 I have created a release *beep* *boop* --- <details><summary>0.61.0-beta</summary> ## [0.61.0-beta](v0.60.0-beta...v0.61.0-beta) (2024-10-24) ### Features * support default value for variable ([#1562](#1562)) ([1fdb718](1fdb718)) ### Miscellaneous * retire vdp-sdk/mgmt ([#1557](#1557)) ([f683265](f683265)) </details> <details><summary>@instill-ai/design-system: 0.82.1</summary> ## [0.82.1](https://github.com/instill-ai/console/compare/@instill-ai/design-system-v0.82.0...@instill-ai/design-system-v0.82.1) (2024-10-24) ### Bug Fixes * fix custom task icon ([#1560](#1560)) ([2477f00](2477f00)) </details> <details><summary>@instill-ai/toolkit: 0.109.0</summary> ## [0.109.0](https://github.com/instill-ai/console/compare/@instill-ai/toolkit-v0.108.0...@instill-ai/toolkit-v0.109.0) (2024-10-24) ### Features * show credit owner for runs ([#1561](#1561)) ([93a275a](93a275a)) * support default value for variable ([#1562](#1562)) ([1fdb718](1fdb718)) ### Bug Fixes * fix custom task icon ([#1560](#1560)) ([2477f00](2477f00)) ### Miscellaneous * retire vdp-sdk/mgmt ([#1557](#1557)) ([f683265](f683265)) </details> <details><summary>instill-sdk: 0.10.0</summary> ## [0.10.0](instill-sdk-v0.9.0...instill-sdk-v0.10.0) (2024-10-24) ### Features * show credit owner for runs ([#1561](#1561)) ([93a275a](93a275a)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
No description provided.