-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
settings/teams
and settings/billing
- remove pages router …
…and use app router (#16751) * remove pages router and use app router * revert yarn.lock * remove line break from yarn lock * Add booking limits page to app dir * revert yarn.lock * do not render bookingLimits from pages router * clean up code * remove isAppDir * revert unneeded change * add layout to billing page * remove files not needed * rename imports * remove APP_ROUTER_SETTINGS_DEVELOPER * remove layout
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import BillingPage, { generateMetadata } from "app/settings/(settings-layout)/billing/page"; | ||
|
||
export { generateMetadata }; | ||
export default BillingPage; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { _generateMetadata, getFixedT } from "app/_utils"; | ||
|
||
import { getServerSessionForAppDir } from "@calcom/features/auth/lib/get-server-session-for-app-dir"; | ||
import TeamBookingLimitsView from "@calcom/features/ee/teams/pages/team-booking-limits-view"; | ||
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; | ||
|
||
export const generateMetadata = async () => | ||
await _generateMetadata( | ||
(t) => t("booking_limits"), | ||
(t) => t("booking_limits_team_description") | ||
); | ||
|
||
const Page = async () => { | ||
const session = await getServerSessionForAppDir(); | ||
const t = await getFixedT(session?.user.locale || "en"); | ||
|
||
return ( | ||
<SettingsHeader | ||
title={t("booking_limits")} | ||
description={t("booking_limits_team_description")} | ||
borderInShellHeader={false}> | ||
<TeamBookingLimitsView /> | ||
</SettingsHeader> | ||
); | ||
}; | ||
|
||
export default Page; |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.