diff --git a/src/app/layout.tsx b/src/app/shared/layout.tsx
similarity index 94%
rename from src/app/layout.tsx
rename to src/app/shared/layout.tsx
index ad97ca969..1e99b9a2b 100644
--- a/src/app/layout.tsx
+++ b/src/app/shared/layout.tsx
@@ -10,7 +10,7 @@ export default async function RootLayout({
children: React.ReactNode;
}>) {
return (
-
+
{children}
{draftMode().isEnabled && }
diff --git a/src/app/studio/layout.tsx b/src/app/studio/layout.tsx
new file mode 100644
index 000000000..1e99b9a2b
--- /dev/null
+++ b/src/app/studio/layout.tsx
@@ -0,0 +1,20 @@
+import { draftMode } from "next/headers";
+
+import LiveVisualEditing from "studio/lib/loaders/AutomaticVisualEditing";
+
+import "src/styles/global.css";
+
+export default async function RootLayout({
+ children,
+}: Readonly<{
+ children: React.ReactNode;
+}>) {
+ return (
+
+
+ {children}
+ {draftMode().isEnabled && }
+
+
+ );
+}
diff --git a/src/components/languageSwitcher/LanguageSwitcher.tsx b/src/components/languageSwitcher/LanguageSwitcher.tsx
index a99348be7..a902262e9 100644
--- a/src/components/languageSwitcher/LanguageSwitcher.tsx
+++ b/src/components/languageSwitcher/LanguageSwitcher.tsx
@@ -1,7 +1,6 @@
import Link from "next/link";
import { Fragment } from "react";
-import Text from "src/components/text/Text";
import { InternationalizedString } from "studio/lib/interfaces/global";
import styles from "./languageSwitcher.module.css";
@@ -26,18 +25,16 @@ export default function LanguageSwitcher({
{pathTranslation._key !== currentLanguage ? (
-
- {pathTranslation._key.toUpperCase()}
-
+ {pathTranslation._key.toUpperCase()}
) : (
-
+
{pathTranslation._key.toUpperCase()}
-
+
)}
{index < pathTranslations.length - 1 && (
diff --git a/src/components/languageSwitcher/languageSwitcher.module.css b/src/components/languageSwitcher/languageSwitcher.module.css
index 090a16be8..aa0e6f58a 100644
--- a/src/components/languageSwitcher/languageSwitcher.module.css
+++ b/src/components/languageSwitcher/languageSwitcher.module.css
@@ -17,6 +17,8 @@
line-height: 120%;
font-weight: 300;
+ text-decoration: none;
+
&:hover {
text-decoration: underline;
}
@@ -28,20 +30,8 @@
line-height: 120%;
font-weight: 600;
- &:hover {
- text-decoration: underline;
- }
-
&:active {
font-weight: 600;
text-decoration: none;
}
}
-
-.notSelected {
- text-decoration: none;
-
- &:hover {
- text-decoration: underline;
- }
-}