🐛 fix(dictComponent): fix placeholder text in input field to improve clarity and user experience
🔀 refactor(dictComponent): reorganize imports for better readability and maintainability
This commit is contained in:
parent
0aa39d8a8e
commit
6b129b4d44
1 changed files with 13 additions and 13 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { useEffect } from "react";
|
||||
import { DictComponentType } from "../../types/components";
|
||||
|
||||
import DictAreaModal from "../../modals/dictAreaModal";
|
||||
import { classNames } from "../../utils/utils";
|
||||
import { Input } from "../ui/input";
|
||||
import DictAreaModal from "../../modals/dictAreaModal";
|
||||
|
||||
export default function DictComponent({
|
||||
value,
|
||||
|
|
@ -27,19 +27,19 @@ export default function DictComponent({
|
|||
{
|
||||
<div className="flex w-full gap-3">
|
||||
<DictAreaModal
|
||||
value={value}
|
||||
onChange={(obj) => {
|
||||
onChange(obj);
|
||||
}}
|
||||
value={value}
|
||||
onChange={(obj) => {
|
||||
onChange(obj);
|
||||
}}
|
||||
>
|
||||
<Input
|
||||
disabled={true}
|
||||
type="text"
|
||||
className={
|
||||
editNode ? "input-edit-node cursor-pointer" : "cursor-pointer"
|
||||
}
|
||||
placeholder="Click edit your dictionary..."
|
||||
/>
|
||||
<Input
|
||||
disabled={true}
|
||||
type="text"
|
||||
className={
|
||||
editNode ? "input-edit-node cursor-pointer" : "cursor-pointer"
|
||||
}
|
||||
placeholder="Click to edit your dictionary..."
|
||||
/>
|
||||
</DictAreaModal>
|
||||
</div>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue