Skip to content

Commit

Permalink
feat: webview 데이터 연동
Browse files Browse the repository at this point in the history
  • Loading branch information
bepyan committed Feb 3, 2024
1 parent 8689819 commit cc80773
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions apps/web/src/app/phrase-webview/[phraseId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import * as stylex from "@stylexjs/stylex";
import { apis } from "~/apis";
import { Phrase } from "~/apis/phrase-api/type";
import PhraseContent from "~/components/phrase-content";
import { globalStyles } from "~/styles/globals.stylex";

export default function PhraseWebviewPage() {
export default async function PhraseWebviewPage({
params,
}: {
params: { phraseId: string };
}) {
const res = await apis.adminApi.getPhrase(params.phraseId);
const phrase: Phrase = res.result;

return (
<main {...stylex.props(globalStyles.container)}>
<PhraseContent />
<PhraseContent phrase={phrase} />
</main>
);
}
Expand Down

0 comments on commit cc80773

Please sign in to comment.