🐛 fix(ApiModal/index.tsx): remove unnecessary empty line
✨ feat(ApiModal/index.tsx): add support for displaying tweaks code in a new tab if tweaksCode object is not empty
This commit is contained in:
parent
032e48ac7f
commit
ca03da9ee2
1 changed files with 10 additions and 8 deletions
|
|
@ -62,6 +62,7 @@ const ApiModal = forwardRef(
|
||||||
},
|
},
|
||||||
ref
|
ref
|
||||||
) => {
|
) => {
|
||||||
|
|
||||||
const [activeTab, setActiveTab] = useState("0");
|
const [activeTab, setActiveTab] = useState("0");
|
||||||
const [isCopied, setIsCopied] = useState<Boolean>(false);
|
const [isCopied, setIsCopied] = useState<Boolean>(false);
|
||||||
const [openAccordion, setOpenAccordion] = useState([]);
|
const [openAccordion, setOpenAccordion] = useState([]);
|
||||||
|
|
@ -115,8 +116,6 @@ const ApiModal = forwardRef(
|
||||||
tweak?.current?.push(t);
|
tweak?.current?.push(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
if (Object.keys(tweaksCode).length > 0) {
|
if (Object.keys(tweaksCode).length > 0) {
|
||||||
tabs.push({
|
tabs.push({
|
||||||
name: "Tweaks",
|
name: "Tweaks",
|
||||||
|
|
@ -126,6 +125,9 @@ const ApiModal = forwardRef(
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
|
||||||
function filterNodes() {
|
function filterNodes() {
|
||||||
let arrNodesWithValues = [];
|
let arrNodesWithValues = [];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue