From d92236e6efa80f13d3044c4dfc02a2029580316d Mon Sep 17 00:00:00 2001 From: SinusFox <61253950+SinusFox@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:22:14 +0200 Subject: [PATCH] adding minimize button --- src/app/page.tsx | 13 +++++++++---- src/app/scripts.ts | 14 ++++++++++++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index e6732cf..3375c12 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { Box, Button, Output } from "./modules"; -import { calculate_click, downloadLP, import_click } from "./scripts" +import { calculate_clickMaximize, calculate_clickMinimize, downloadLP, import_click } from "./scripts" import text from "./lang" export default function Home() { @@ -19,7 +19,8 @@ export default function Home() { const tr_boxVarsDesc = text(language, "boxVarsDesc"); const tr_boxOut = text(language, "boxOut"); const tr_boxExportLP = text(language, "boxExportLP"); - const tr_calc = text(language, "buttonCalc"); + const tr_calc_max = text(language, "maximize"); + const tr_calc_min = text(language, "minimize"); const handleLanguageChange = (event: React.ChangeEvent) => { setLanguage(event.target.value); @@ -59,9 +60,13 @@ export default function Home() { placeholder={tr_boxVarsDesc} id="vars" />