Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -23,7 +23,7 @@ export default function LayoutSelector({ className, btnClassName }: Props) {
},
];
function select(value: ApplicationLayout) {
function select(_value: ApplicationLayout) {
// store.dispatch(setLayout(value));
}
@@ -3,7 +3,6 @@ import clsx from "clsx";
import { useLocation, useMatches, useSearchParams, useSubmit } from "react-router";
import { useRootData } from "~/utils/data/useRootData";
import AnalyticsHelper from "~/utils/helpers/AnalyticsHelper";
import { i18nConfig } from "~/locale/i18n";
import { Fragment } from "react";
import {
DropdownMenu,
@@ -16,6 +15,7 @@ import {
} from "../dropdown-menu";
import { Button } from "../button";
import { LanguagesIcon } from "~/components/ui/icons/vendor";
import { defaultEnabledLocales } from "~/locale/i18n";
interface Props {
className?: string;
@@ -28,6 +28,7 @@ export default function LocaleSelector({ className, disabled }: Props) {
const [searchParams] = useSearchParams();
const submit = useSubmit();
const rootData = useRootData();
const enabledLocales = rootData.enabledLocales ?? defaultEnabledLocales;
const matches = useMatches();
async function select(value: string) {
@@ -78,7 +79,7 @@ export default function LocaleSelector({ className, disabled }: Props) {
<DropdownMenuLabel>{t("shared.language")}</DropdownMenuLabel>
<DropdownMenuSeparator />
<DropdownMenuGroup>
{i18nConfig.supportedLngs.map((language, index) => {
{enabledLocales.map((language, index) => {
return (
<DropdownMenuItem key={index} onClick={() => select(language)}>
{t("shared.locales." + language)}
@@ -108,7 +109,7 @@ export default function LocaleSelector({ className, disabled }: Props) {
}
options={
<div>
{i18nConfig.supportedLngs.map((language, index) => {
{enabledLocales.map((language, index) => {
return (
<Menu.Item key={index}>
{({ active }) => (
@@ -1,5 +1,5 @@
import "@testing-library/jest-dom";
import { fireEvent, render, screen } from "@testing-library/react";
import { render, screen } from "@testing-library/react";
import { createMemoryRouter, RouterProvider } from "react-router";
import { describe, expect, it, vi } from "vitest";