add empty screen component to list view
parent
1bdb75a363
commit
d1c2fd2c9c
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue