File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
extension/src/pages/text_input Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ import logo from "../../assets/aossie_logo.webp";
55import stars from "../../assets/stars.png" ;
66import cloud from "../../assets/cloud.png" ;
77import arrow from "../../assets/arrow.png" ;
8- import { FaClipboard } from "react-icons/fa" ;
9- import Switch from "react-switch" ;
8+ import { FaClipboard , FaWikipediaW } from "react-icons/fa" ;
109
1110function Second ( ) {
1211 const [ text , setText ] = useState ( "" ) ;
@@ -298,14 +297,15 @@ function Second() {
298297 </ button >
299298 </ div >
300299 < div className = "items-center bg-[#202838] text-white rounded-xl px-2 py-2" >
301- < Switch
302- checked = { isToggleOn }
303- onChange = { toggleSwitch }
304- offColor = "#FF005C"
305- onColor = "#00CBE7"
306- height = { 24 }
307- width = { 44 }
308- />
300+ < button
301+ title = { isToggleOn ? "Disable Wikipedia Context" : "Enable Wikipedia Context" }
302+ onClick = { toggleSwitch }
303+ className = { `p-1 rounded-md transition
304+ ${ isToggleOn ? "bg-green-500 text-white" : "bg-gray-400 text-gray-300" }
305+ ` }
306+ >
307+ < FaWikipediaW className = "text-2xl" />
308+ </ button >
309309 </ div >
310310 </ div >
311311 < div className = "flex my-2 justify-center gap-6 items-start" >
You can’t perform that action at this time.
0 commit comments