- Notifications
You must be signed in to change notification settings - Fork907
refactor: update app buttons to use the new button component#17684
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
5734f98
8140292
2a39826
5853a55
662cc94
7a0e645
591da07
9d2e4e2
df9a7ed
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,8 @@ | ||
import{Button, type ButtonProps } from "components/Button/Button"; | ||
import { forwardRef } from "react"; | ||
export const AgentButton = forwardRef<HTMLButtonElement, ButtonProps>( | ||
(props, ref) => { | ||
return <Button variant="outline" ref={ref} {...props} />; | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. What is purpose of keeping AgentButton around instead of removing it and using Button directly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. This is a good question. Since we want to have the TerminalLink, AppLink, VSCode buttons, etc. visually consistent, and be sure they are always looking the same, I just decided to keep the AgentButton. Of course, we could just set the variant in all these components, but since they are many (around 5 or 6 I guess) it would be easy to forget to update one of them when changing some of the styles (maybe it is not a problem since we have tests). I'm going to refactor the apps logic very soon, so If I see it is just ok to remove the AgentButton, I will do. | ||
); |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.