diff options
author | Ty Dunn <ty@tydunn.com> | 2023-07-05 23:20:06 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-07-05 23:20:06 -0700 |
commit | 4fd50ba78b0199d3495f1cd7e08f595a751e6fe3 (patch) | |
tree | cb74b1ab31218ee1ba523cf924170969f2308bb0 /extension/react-app/src/components/PillButton.tsx | |
parent | d5a92ae77ab692c4f7d57e041a2927a41d8133bd (diff) | |
parent | d259979ef89f17957396fc7300e1ecf54214ae84 (diff) | |
download | sncontinue-4fd50ba78b0199d3495f1cd7e08f595a751e6fe3.tar.gz sncontinue-4fd50ba78b0199d3495f1cd7e08f595a751e6fe3.tar.bz2 sncontinue-4fd50ba78b0199d3495f1cd7e08f595a751e6fe3.zip |
Merge branch 'main' of github.com:continuedev/continue
Diffstat (limited to 'extension/react-app/src/components/PillButton.tsx')
-rw-r--r-- | extension/react-app/src/components/PillButton.tsx | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/extension/react-app/src/components/PillButton.tsx b/extension/react-app/src/components/PillButton.tsx index 2352c3ad..5a02c6b2 100644 --- a/extension/react-app/src/components/PillButton.tsx +++ b/extension/react-app/src/components/PillButton.tsx @@ -15,6 +15,8 @@ const Button = styled.button` background-color: white; color: black; } + + cursor: pointer; `; interface PillButtonProps { @@ -39,26 +41,13 @@ const PillButton = (props: PillButtonProps) => { props.onHover(false); } }} + onClick={() => { + if (props.onDelete) { + props.onDelete(); + } + }} > - <div - style={{ display: "grid", gridTemplateColumns: "1fr auto", gap: "4px" }} - > - <span - style={{ - cursor: "pointer", - color: "red", - borderRight: "1px solid black", - paddingRight: "4px", - }} - onClick={() => { - props.onDelete?.(); - props.onHover?.(false); - }} - > - <XMark style={{ padding: "0px" }} size="1.2em" strokeWidth="2px" /> - </span> - <span>{props.title}</span> - </div> + {props.title} </Button> ); }; |