mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-25 18:55:19 +02:00
remove add webhook tool in billed version
This commit is contained in:
parent
ff9f0ff1fc
commit
d6894c4526
6 changed files with 41 additions and 37 deletions
|
|
@ -15,7 +15,8 @@ export function AddWebhookTool({ projectId, onAddTool }: AddWebhookToolProps) {
|
|||
function handleAddTool() {
|
||||
onAddTool({
|
||||
description: 'Webhook tool',
|
||||
mockTool: false,
|
||||
mockTool: true,
|
||||
isWebhook: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ export function ToolsConfig({
|
|||
const [activeTab, setActiveTab] = useState(defaultActiveTab);
|
||||
const [selectedToolkit, setSelectedToolkit] = useState<ToolkitType | null>(null);
|
||||
const [isToolsPanelOpen, setIsToolsPanelOpen] = useState(false);
|
||||
const useBilling = process.env.NEXT_PUBLIC_USE_BILLING === "true";
|
||||
|
||||
const handleTabChange = (key: Key) => {
|
||||
setActiveTab(key.toString());
|
||||
|
|
@ -84,14 +85,14 @@ export function ToolsConfig({
|
|||
/>
|
||||
</div>
|
||||
</Tab>
|
||||
<Tab key="webhook" title="Webhook">
|
||||
{!useBilling && <Tab key="webhook" title="Webhook">
|
||||
<div className="mt-4 p-6">
|
||||
<AddWebhookTool
|
||||
projectId={projectId}
|
||||
onAddTool={onAddTool}
|
||||
/>
|
||||
</div>
|
||||
</Tab>
|
||||
</Tab>}
|
||||
</Tabs>
|
||||
|
||||
{/* Tools Panel */}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue