[CAL-493] Implements tRCP on event types (#923)

* Removes unused component

* Refactors useLocale

We don't need to pass the locale prop everywhere

* Event type fixes

* Extracts CreateNewEventDialog

* Implements tRCP for event types
This commit is contained in:
Omar López authored and GitHub committed 2021-10-15 20:07:00 +01:00
1 parent c01004b470
commit 3641d5e46e
9 files changed
+443 -492

No files matched your search

+6 -1
View File
@@ -1,4 +1,4 @@
import { SchedulingType } from "@prisma/client";
import { SchedulingType, EventType } from "@prisma/client";
export type OpeningHours = {
days: number[];
@@ -49,9 +49,14 @@ export type CreateEventType = {
slug: string;
description: string;
length: number;
teamId?: number;
schedulingType?: SchedulingType;
};
export type CreateEventTypeResponse = {
eventType: EventType;
};
export type EventTypeInput = AdvancedOptions & {
id: number;
title: string;