-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ログアウトボタンとメール通知の切り替えボタン&APIを追加 #73
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…ama/create-logout-button
…ama/create-logout-button
import { prisma } from "@lib/prisma"; | ||
import type { NextRequest } from "next/server"; | ||
|
||
export async function POST(req: NextRequest) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export async function POST(req: NextRequest) { | |
export async function PUT(req: NextRequest) { |
app/src/app/user/page.tsx
Outdated
|
||
try { | ||
const response = await fetch("/api/user/updateEmailPreference", { | ||
method: "POST", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
method: "POST", | |
method: "PUT", |
User description
概要
ログアウトボタンとメール通知の切り替えボタンを追加しました。
変更内容
ボタンの追加とCSSを調整しました。
メール通知の可否を変更できます。
動作確認
PR Type
enhancement
Description
Changes walkthrough 📝
page.tsx
ログアウトとメール通知切り替えボタンの追加とUI調整
app/src/app/user/page.tsx
signOut
関数を呼び出すように設定