🎨 style(promptComponent, textAreaComponent): fix indentation and whitespace
The changes in these files are purely cosmetic, fixing indentation and whitespace to improve code readability.
🔨 refactor(genericModal/index.tsx): improve code readability and add destructuring to props
The code has been refactored to improve readability and make it easier to understand. Destructuring has been added to the props to make it easier to access the values.
This commit is contained in:
parent
f774cc6361
commit
bf0ab14f67
3 changed files with 152 additions and 153 deletions
|
|
@ -9,14 +9,13 @@ export default function PromptAreaModal({
|
||||||
value,
|
value,
|
||||||
setValue,
|
setValue,
|
||||||
buttonText,
|
buttonText,
|
||||||
modalTitle
|
modalTitle,
|
||||||
}: {
|
}: {
|
||||||
setValue: (value: string) => void;
|
setValue: (value: string) => void;
|
||||||
value: string;
|
value: string;
|
||||||
buttonText: string;
|
buttonText: string;
|
||||||
modalTitle: string;
|
modalTitle: string;
|
||||||
}) {
|
}) {
|
||||||
|
|
||||||
const [myButtonText, setmyButtonText] = useState(buttonText);
|
const [myButtonText, setmyButtonText] = useState(buttonText);
|
||||||
const [myModalTitle, setMyModalTitle] = useState(modalTitle);
|
const [myModalTitle, setMyModalTitle] = useState(modalTitle);
|
||||||
const [open, setOpen] = useState(true);
|
const [open, setOpen] = useState(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue