Skip to content

Commit

Permalink
Fix SAT text highlighting and add new placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
Elscrux committed Sep 28, 2023
1 parent bd6acdc commit 319c195
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/pages/solve/QUBO.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import Head from "next/head";
import React, { useState } from "react";
import type { NextPage } from "next";
import { TextArea } from "../../components/solvers/SAT/TextArea";
import { TextInputMask } from "../../components/solvers/TextInputMask";
import { ProgressHandler } from "../../components/solvers/ProgressHandler";
import { Text, Divider, Heading, Spacer, Code } from "@chakra-ui/react";
import { Layout } from "../../components/layout/Layout";
import { EditorControls } from "../../components/solvers/EditorControls";
import { baseUrl } from "../../api/ToolboxAPI";

const QUBO: NextPage = () => {
const [quboTerm, setQuboTerm] = useState("");
Expand All @@ -31,13 +29,10 @@ const QUBO: NextPage = () => {

<Spacer />

<EditorControls
idleText={'Try "a and not (not a or not b)" 👇'}
onUpload={setQuboTerm}
editorContent={quboTerm}
documentationLink={`${baseUrl()}/webjars/swagger-ui/index.html#/qubo`}
<TextInputMask
onTextChanged={setQuboTerm}
textPlaceholder={"Enter your QUBO problem in LP format"}
/>
<TextArea problemString={quboTerm} setProblemString={setQuboTerm} />
<Divider />
<ProgressHandler problemTypes={["qubo"]} problemInput={quboTerm} />
</Layout>
Expand Down

0 comments on commit 319c195

Please sign in to comment.