This commit is contained in:
NotII
2025-04-06 15:39:37 +01:00
parent 80fb9b0be2
commit a651bd3ec4
6 changed files with 72 additions and 12 deletions

View File

@@ -8,10 +8,11 @@ export const metadata: Metadata = {
description: "View and respond to customer messages",
};
export default function ChatDetailPage({ params }: { params: { id: string } }) {
export default async function ChatDetailPage({ params }: { params: { id: string } }) {
const chatId = await params.id;
return (
<Dashboard>
<ChatDetail chatId={params.id} />
<ChatDetail chatId={chatId} />
</Dashboard>
);
}

View File

@@ -1,5 +1,5 @@
import React from "react";
import { Metadata } from "next";
import { Metadata, Viewport } from "next";
import NewChatForm from "@/components/dashboard/NewChatForm";
import Dashboard from "@/components/dashboard/dashboard";
@@ -8,6 +8,15 @@ export const metadata: Metadata = {
description: "Begin a new conversation with a customer",
};
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
themeColor: [
{ media: "(prefers-color-scheme: dark)", color: "#000000" },
{ media: "(prefers-color-scheme: light)", color: "#D53F8C" },
],
};
export default function NewChatPage() {
return (
<Dashboard>

View File

@@ -1,6 +1,6 @@
import { Suspense } from "react";
import Dashboard from "@/components/dashboard/dashboard";
import { Metadata } from "next";
import { Metadata, Viewport } from "next";
import PromotionsList from "@/components/dashboard/promotions/PromotionsList";
import PromotionsPageSkeleton from "@/components/dashboard/promotions/PromotionsPageSkeleton";
@@ -9,6 +9,15 @@ export const metadata: Metadata = {
description: "Manage promotion codes for your store on Ember Market"
};
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
themeColor: [
{ media: "(prefers-color-scheme: dark)", color: "#000000" },
{ media: "(prefers-color-scheme: light)", color: "#D53F8C" },
],
};
export default function PromotionsPage() {
return (
<Dashboard>