- {analysisPackages.length > 0 ? analysisPackages.map(
- (analysisPackage) => (
-
+ {analysisPackages.length > 0 ? (
+ analysisPackages.map((analysisPackage) => (
+
+ ))
+ ) : (
diff --git a/packages/ui/src/makerkit/language-selector.tsx b/packages/ui/src/makerkit/language-selector.tsx
index 59f07d0..f7542f0 100644
--- a/packages/ui/src/makerkit/language-selector.tsx
+++ b/packages/ui/src/makerkit/language-selector.tsx
@@ -40,7 +40,7 @@ export function LanguageSelector({
}, [currentLanguage]);
const userId = user?.id;
- const updateAccountMutation = useUpdateAccountData(userId!);
+ const updateAccountMutation = useUpdateAccountData(userId);
const revalidateUserDataQuery = useRevalidatePersonalAccountDataQuery();
const updateLanguagePreference = async (
@@ -52,6 +52,10 @@ export function LanguageSelector({
onChange(locale);
}
+ if (!userId) {
+ return i18n.changeLanguage(locale);
+ }
+
const promise = updateAccountMutation
.mutateAsync({
preferred_locale: locale,
diff --git a/packages/ui/src/makerkit/marketing/header.tsx b/packages/ui/src/makerkit/marketing/header.tsx
index 1489ef2..219c636 100644
--- a/packages/ui/src/makerkit/marketing/header.tsx
+++ b/packages/ui/src/makerkit/marketing/header.tsx
@@ -1,5 +1,7 @@
-import { cn } from '../../lib/utils';
import { LanguageSelector } from '@kit/ui/language-selector';
+
+import { cn } from '../../lib/utils';
+
interface HeaderProps extends React.HTMLAttributes
{
logo?: React.ReactNode;
navigation?: React.ReactNode;
@@ -22,11 +24,16 @@ export const Header: React.FC = function ({
{...props}
>
-
-
{logo}
-
{navigation}
-
-
+
+
{logo}
+
{navigation}
+
+
diff --git a/packages/ui/src/makerkit/page.tsx b/packages/ui/src/makerkit/page.tsx
index e089171..7a4ee42 100644
--- a/packages/ui/src/makerkit/page.tsx
+++ b/packages/ui/src/makerkit/page.tsx
@@ -42,7 +42,7 @@ function PageWithSidebar(props: PageProps) {
>
{MobileNavigation}
-
@@ -58,7 +58,7 @@ export function PageMobileNavigation(
return (
diff --git a/styles/theme.css b/styles/theme.css
index 46641c3..e12a584 100644
--- a/styles/theme.css
+++ b/styles/theme.css
@@ -135,6 +135,7 @@
--animate-accordion-down: accordion-down 0.2s ease-out;
--animate-accordion-up: accordion-up 0.2s ease-out;
+ --breakpoint-2xs: 36rem;
--breakpoint-xs: 48rem;
--breakpoint-sm: 64rem;
--breakpoint-md: 70rem;