Skip to content

Commit

Permalink
Added Events
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopkarnik committed Jul 12, 2024
1 parent 65e0cca commit ed13e6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { use, useEffect, useState } from 'react';
import {Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select'
import ActionTabs from './ActionTabs';
import Image from 'next/image';

const ActionSelect = ({type,options,node}:any) => {

Expand All @@ -24,7 +25,7 @@ const ActionSelect = ({type,options,node}:any) => {
<SelectItem key={option.actionType} value={option.actionType}>
<div className='flex items-center justify-start gap-4'>
{option.icon && <option.icon/> }
{option.image && <img src={option.image} className='w-6 h-6'/>}
{option.image && <Image src={option.image} alt={''} className='w-6 h-6'/>}
<div>{option.actionType}</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ import { EditorContext } from '../../../../../../../providers/editor-provider';
import { useRouter } from 'next/navigation';

const Webhook = ({type,actionType,subActionType,node}:any) => {
const form = useForm()
const { editorId } = useParams()
const editor = useContext(EditorContext);
const router = useRouter();
if (subActionType == 'Internal Webhook'){
const form = useForm()
const { editorId } = useParams()
const editor = useContext(EditorContext);
const router = useRouter();

const onSubmit = async (data:any) => {
const session = await getSession()
const userId = session?.user?.id
Expand Down

0 comments on commit ed13e6c

Please sign in to comment.