Create professional demos and 3D mockups in seconds, directly in your browser
feat: add hover tooltip for paste functionality in English and Spanish translations
CristianOlivera16073b4eaf62d
diff --git a/messages/en.json b/messages/en.jsonindex a3fedd4..32fc4f0 100644--- a/messages/en.json+++ b/messages/en.json@@ -973,6 +973,9 @@"from": "From","to": "To"}+ },+ "hoverTooltip": {+ "paste": "Paste"}},"playerControls": {diff --git a/messages/es.json b/messages/es.jsonindex d3a60ff..e75d068 100644--- a/messages/es.json+++ b/messages/es.json@@ -927,6 +927,9 @@"from": "Desde","to": "Hasta"}+ },+ "hoverTooltip": {+ "paste": "Pegar"}},"historyMenu": {diff --git a/utils/supabase/middleware.ts b/utils/supabase/middleware.tsindex d89549e..110d878 100644--- a/utils/supabase/middleware.ts+++ b/utils/supabase/middleware.ts@@ -33,6 +33,8 @@ export const updateSession = async (request: NextRequest) => {const {data: { user },} = await supabase.auth.getUser();++ const pathname = request.nextUrl.pathname;// if (!user && request.nextUrl.pathname.startsWith("/editor")) {// const url = request.nextUrl.clone();@@ -41,9 +43,10 @@ export const updateSession = async (request: NextRequest) => {// return NextResponse.redirect(url);// }- if (user && request.nextUrl.pathname.startsWith("/login")) {+ if (user && pathname.endsWith("/login")) {const url = request.nextUrl.clone();- url.pathname = "/";+ url.pathname = pathname.replace("/login", "/editor");+return NextResponse.redirect(url);}