File tree 1 file changed +10
-10
lines changed
extension/src/pages/text_input
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";
5
5
import stars from "../../assets/stars.png" ;
6
6
import cloud from "../../assets/cloud.png" ;
7
7
import 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" ;
10
9
11
10
function Second ( ) {
12
11
const [ text , setText ] = useState ( "" ) ;
@@ -298,14 +297,15 @@ function Second() {
298
297
</ button >
299
298
</ div >
300
299
< 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 >
309
309
</ div >
310
310
</ div >
311
311
< div className = "flex my-2 justify-center gap-6 items-start" >
You can’t perform that action at this time.
0 commit comments