add appropriate props into memoized item component

event-type-list
Ryukemeister 2023-11-01 01:04:17 +05:30
parent 57d1de4709
commit 2e912078a4
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export function EventType({
{!(lastItem && lastItem.id === type.id) && ( {!(lastItem && lastItem.id === type.id) && (
<ArrowButton arrowDirection="down" onClick={() => moveEventType(index, 1)} /> <ArrowButton arrowDirection="down" onClick={() => moveEventType(index, 1)} />
)} )}
<MemoizedItem /> <MemoizedItem type={type} group={group} readOnly={readOnly} />
<div className="mt-4 hidden sm:mt-0 sm:flex"> <div className="mt-4 hidden sm:mt-0 sm:flex">
<div className="flex justify-between space-x-2 rtl:space-x-reverse"> <div className="flex justify-between space-x-2 rtl:space-x-reverse">
{type.team && !isManagedEventType && ( {type.team && !isManagedEventType && (