add empty screen component to list view

event-type-list
Ryukemeister 2023-11-01 00:22:07 +05:30
parent 1bdb75a363
commit d1c2fd2c9c
1 changed files with 22 additions and 1 deletions

View File

@ -1,4 +1,25 @@
export function EventTypeList() { import { CreateFirstEventTypeView } from "EventTypeList/components/empty-screen/createFirstEventType";
import { EmptyEventTypeList } from "EventTypeList/components/empty-screen/emptyEventTypeList";
export function EventTypeList({
group,
groupIndex,
readOnly,
types,
}: {
group: any;
groupIndex: number;
readOnly: boolean;
types: any;
}): JSX.Element {
if (!types.length) {
return group.teamId ? (
<EmptyEventTypeList group={group} />
) : (
<CreateFirstEventTypeView slug={group.profile.slug ?? ""} />
);
}
return ( return (
<div> <div>
<h1>Event type list goes here</h1> <h1>Event type list goes here</h1>