From 8141e205bae7e5e7537a721ca21ea7b6024ffca7 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 24 Jul 2023 17:47:37 -0700 Subject: file context provider and hovering niceties --- extension/react-app/src/components/PillButton.tsx | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'extension/react-app/src/components/PillButton.tsx') diff --git a/extension/react-app/src/components/PillButton.tsx b/extension/react-app/src/components/PillButton.tsx index af4263af..660ede09 100644 --- a/extension/react-app/src/components/PillButton.tsx +++ b/extension/react-app/src/components/PillButton.tsx @@ -1,8 +1,9 @@ -import { useContext, useEffect, useState } from "react"; +import { useContext, useEffect, useRef, useState } from "react"; import styled from "styled-components"; import { StyledTooltip, defaultBorderRadius, + lightGray, secondaryDark, vscBackground, vscForeground, @@ -96,12 +97,19 @@ const PillButton = (props: PillButtonProps) => { <> {props.item.description.name}:{" "} {props.item.description.description} - +
+              
+                {props.item.content}
+              
+            
) ); @@ -178,6 +186,7 @@ const PillButton = (props: PillButtonProps) => { backgroundColor={"#cc000055"} onClick={() => { client?.deleteContextWithIds([props.item.description.id]); + dispatch(setBottomMessageCloseTimeout(undefined)); }} > -- cgit v1.2.3-70-g09d2