From b38871608f1fecab07c917b46bf385f114dac335 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 20 Feb 2024 16:03:23 +0100 Subject: [PATCH] fix and add chevron for advanced config --- apps/vyper/src/app/app.tsx | 8 ++++---- apps/vyper/src/app/components/CustomAccordionToggle.tsx | 6 ++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/vyper/src/app/app.tsx b/apps/vyper/src/app/app.tsx index adfb54d021..4b7a69c2e0 100644 --- a/apps/vyper/src/app/app.tsx +++ b/apps/vyper/src/app/app.tsx @@ -114,14 +114,14 @@ const App = () => { +
-
+
Advanced Compiler Settings - {/* */} - + {/* */}
@@ -137,7 +137,7 @@ const App = () => {
- Specify the compiler version & EVM version in the .vy file + Specify the compiler version & EVM version in the .vy file.
setOutput({...output, [name]: update})} resetCompilerState={resetCompilerResultState} /> diff --git a/apps/vyper/src/app/components/CustomAccordionToggle.tsx b/apps/vyper/src/app/components/CustomAccordionToggle.tsx index c4a5ce98b5..edaf6a16de 100644 --- a/apps/vyper/src/app/components/CustomAccordionToggle.tsx +++ b/apps/vyper/src/app/components/CustomAccordionToggle.tsx @@ -1,5 +1,4 @@ -import React, { useContext, useState } from 'react' -import { AccordionContext } from 'react-bootstrap' +import React, { useState } from 'react' import { useAccordionToggle } from 'react-bootstrap/AccordionToggle' export type CustomAccordionToggleProps = { @@ -10,18 +9,17 @@ export type CustomAccordionToggleProps = { export default function CustomAccordionToggle({ children, eventKey }: CustomAccordionToggleProps) { const [toggleAccordion, setToggleAccordion] = useState(false) - // const decoratedOnClick = useAccordionToggle(eventKey, () => setToggleAccordion(!toggleAccordion) ) - return (
{children} +
) }