mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
upgrade Nodemailer to v10
fix dead code with knip upgrade TS to v6 and fix linting errors auto apply oxfmt rules fix linting errors - unused deps etc ignore file remove all ignored files in knip add knip - dead code analysis tool swap prettier and eslint of oxfmt and oxlint fix: fix map rendering in react strict mode fix: headlessUI float replace fix: disable Matomo if not URL and SITE ID exist upgrade: 1st pass upgrade to Next.js v16 deps: upgrade react to v19
This commit is contained in:
@@ -22,10 +22,7 @@ type RegionSelectProps = Omit<
|
||||
type RegionOption = BaseOption<string, Zone | null>;
|
||||
type GroupedOption = GroupBase<RegionOption>;
|
||||
|
||||
export const RegionSelect = ({
|
||||
syncTitle,
|
||||
...selectProps
|
||||
}: RegionSelectProps) => {
|
||||
export const RegionSelect = ({ syncTitle, ...selectProps }: RegionSelectProps) => {
|
||||
const t = useTranslations("Zones");
|
||||
const router = useRouter();
|
||||
const [regionFilter, setRegionFilter] = useAtom(regionFilterAtom);
|
||||
@@ -67,9 +64,7 @@ export const RegionSelect = ({
|
||||
},
|
||||
];
|
||||
|
||||
const onChange = (
|
||||
option: OnChangeValue<BaseOption<string, Zone | null>, false>,
|
||||
) => {
|
||||
const onChange = (option: OnChangeValue<BaseOption<string, Zone | null>, false>) => {
|
||||
if (!option) return;
|
||||
|
||||
if (option.value === "create") {
|
||||
@@ -114,11 +109,7 @@ export const RegionSelect = ({
|
||||
);
|
||||
|
||||
const getValue = () => {
|
||||
if (
|
||||
regionFilter === "all" ||
|
||||
regionFilter === "map" ||
|
||||
regionFilter === "region"
|
||||
) {
|
||||
if (regionFilter === "all" || regionFilter === "map" || regionFilter === "region") {
|
||||
return allOptions.find((o) => o.value === regionFilter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user