diff --git a/app/_components/WebappFrame.tsx b/app/_components/WebappFrame.tsx index c96e37c7..188a932c 100644 --- a/app/_components/WebappFrame.tsx +++ b/app/_components/WebappFrame.tsx @@ -17,7 +17,7 @@ import { TokenInfo, getTokenInfos } from '../_services/getTokenInfo'; import { Button, Spinner } from 'flowbite-react'; import ShareStateAsUrl from './ShareStateAsUrl'; import { decompress } from '../_services/compress'; -import { PaginatedButton } from '../types'; +import { Button as ButtonType } from '../types'; interface props { dotrainText: string; @@ -132,9 +132,9 @@ const WebappFrame = ({ dotrainText, deploymentOption }: props) => { } }, [yamlData, currentState.tokenInfos.length, loading.decodingState]); // Dependent on decodingState to ensure token fetch happens after decoding - const handleButtonClick = async (buttonData: PaginatedButton) => { + const handleButtonClick = async (buttonData: ButtonType) => { setError(null); - // Handle page navigation + if (buttonData.buttonTarget === 'textInputLabel') { setCurrentState((prevState) => ({ ...prevState, @@ -193,9 +193,9 @@ const WebappFrame = ({ dotrainText, deploymentOption }: props) => { )}