feat: function idon func added

This commit is contained in:
aks07
2026-02-01 23:59:29 +05:30
parent 0d362b3ba8
commit aac47243ba
2 changed files with 8 additions and 1 deletions

View File

@@ -40,6 +40,7 @@
font-size: 12px;
font-style: normal;
font-weight: 400;
pointer-events: none;
// line-height: 18px;
color: var(--bg-sakura-400) !important;

View File

@@ -183,7 +183,13 @@ export default function QueryFunctions({
functions && functions.length > 0 ? 'hasFunctions' : '',
)}
>
<Button className="periscope-btn function-btn">
<Button
className="periscope-btn function-btn"
disabled={functions && functions.length > 0}
onClick={
functions && functions.length === 0 ? handleAddNewFunction : undefined
}
>
<FunctionIcon
className="function-icon"
fillColor={!isDarkMode ? '#0B0C0E' : 'white'}