refactor: Add exportModal tailwind constants and remove dark classes
This commit is contained in:
parent
d745f90598
commit
18f2c58c72
5 changed files with 21 additions and 6 deletions
|
|
@ -98,7 +98,6 @@ export default function ParameterComponent({
|
||||||
const groupedObj = groupByFamily(myData, tooltipTitle, left, data.type);
|
const groupedObj = groupByFamily(myData, tooltipTitle, left, data.type);
|
||||||
|
|
||||||
refNumberComponents.current = groupedObj[0]?.type?.length;
|
refNumberComponents.current = groupedObj[0]?.type?.length;
|
||||||
console.log(refNumberComponents);
|
|
||||||
|
|
||||||
refHtml.current = groupedObj.map((item, i) => {
|
refHtml.current = groupedObj.map((item, i) => {
|
||||||
const Icon: any = nodeIconsLucide[item.family];
|
const Icon: any = nodeIconsLucide[item.family];
|
||||||
|
|
|
||||||
|
|
@ -1066,4 +1066,19 @@ The cursor: default; property value restores the browser's default cursor style
|
||||||
@apply max-w-[30vw] max-h-[20vh] overflow-auto
|
@apply max-w-[30vw] max-h-[20vh] overflow-auto
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ace-editor-arrangement {
|
||||||
|
@apply flex-max-width h-full flex-col transition-all
|
||||||
|
}
|
||||||
|
.ace-editor {
|
||||||
|
@apply h-full w-full rounded-lg border-[1px] border-border custom-scroll
|
||||||
|
}
|
||||||
|
.ace-editor-save-btn {
|
||||||
|
@apply flex-max-width h-fit justify-end
|
||||||
|
}
|
||||||
|
|
||||||
|
.export-modal-save-api {
|
||||||
|
@apply font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,16 +72,17 @@ export default function EditNodeModal({ data }: { data: NodeDataType }) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeAdvanced(node): void {
|
function changeAdvanced(node) {
|
||||||
Object.keys(data.node.template).filter((n, i) => {
|
Object.keys(data.node.template).map((n, i) => {
|
||||||
if (n === node.name) {
|
if (n === node.name) {
|
||||||
data.node.template[n].advanced = !data.node.template[n].advanced;
|
data.node.template[n].advanced = !data.node.template[n].advanced;
|
||||||
}
|
}
|
||||||
return true;
|
return n;
|
||||||
});
|
});
|
||||||
setNodeValue(!nodeValue);
|
setNodeValue(!nodeValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const handleOnNewValue = (newValue: any, name) => {
|
const handleOnNewValue = (newValue: any, name) => {
|
||||||
data.node.template[name].value = newValue;
|
data.node.template[name].value = newValue;
|
||||||
// Set state to pending
|
// Set state to pending
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ export default function CodeAreaModal({
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
setCode(value);
|
setCode(value);
|
||||||
}}
|
}}
|
||||||
className="h-full w-full rounded-lg border-[1px] border-gray-300 custom-scroll dark:border-gray-600"
|
className="h-full w-full rounded-lg border-[1px] border-border custom-scroll"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex h-fit w-full justify-end">
|
<div className="flex h-fit w-full justify-end">
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ export default function ExportModal() {
|
||||||
/>
|
/>
|
||||||
<label
|
<label
|
||||||
htmlFor="terms"
|
htmlFor="terms"
|
||||||
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
className="export-modal-save-api text-sm"
|
||||||
>
|
>
|
||||||
Save with my API keys
|
Save with my API keys
|
||||||
</label>
|
</label>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue