working on toolbar
This commit is contained in:
@@ -24,16 +24,10 @@ function EditableDiv({value, onChange, openEdit=false, maxLength=Infinity, class
|
||||
}, [openEdit])
|
||||
|
||||
const handleInput = (event) => {
|
||||
|
||||
console.log("Event key: ", event.key)
|
||||
onChange(event.target.value)
|
||||
|
||||
// if (event.key === "")
|
||||
}
|
||||
|
||||
const handleEnterKey = (event) => {
|
||||
console.log("Event key: ", event.key)
|
||||
|
||||
if (event.key === "Enter"){
|
||||
setIsEditable(false)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useState } from "react"
|
||||
|
||||
import { Select, Input } from "antd"
|
||||
import { DownOutlined } from "@ant-design/icons"
|
||||
import { Select, Input, Button } from "antd"
|
||||
import { DownloadOutlined, DownOutlined } from "@ant-design/icons"
|
||||
|
||||
const items = [
|
||||
{
|
||||
@@ -29,8 +29,11 @@ function Header(props){
|
||||
className="tw-min-w-[150px]"
|
||||
/>
|
||||
|
||||
<div className="tw-ml-auto tw-flex tw-place-content-center">
|
||||
<div className="tw-ml-auto tw-flex tw-gap-2 tw-place-content-center">
|
||||
<Input value={projectName} onChange={(e) => setProjectName(e.target.value)} placeholder="project name"/>
|
||||
<Button icon={<DownloadOutlined />} >
|
||||
Export code
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user