Skip to content

Commit 6e444cb

Browse files
committed
Fix lint error and warning
1 parent e445250 commit 6e444cb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/src/routes/(authenticated)/project/[project_code]/BulkAddProjectMembers.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@
2929
}
3030
3131
const { projectId, userLocale }: Props = $props();
32+
3233
const schema = z.object({
3334
usernamesText: z.string().trim().min(1, $t('project_page.bulk_add_members.empty_user_field')),
3435
password: passwordFormRules($t),
35-
locale: z.string().trim().min(2).default(userLocale),
36+
locale: z.string().trim().min(2),
3637
});
3738
3839
let formModal: FormModal<typeof schema> | undefined = $state();
@@ -59,7 +60,7 @@
5960
async function openModal(): Promise<void> {
6061
if (!formModal) return;
6162
currentStep = BulkAddSteps.Add;
62-
const { response } = await formModal.open(undefined, async (state) => {
63+
const { response } = await formModal.open({ locale: userLocale }, async (state) => {
6364
const passwordHash = await hash(state.password.currentValue);
6465
const usernames = state.usernamesText.currentValue
6566
.split('\n')

frontend/viewer/src/lib/components/responsive-menu/responsive-menu-content.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
import {DropdownMenuContent} from '../ui/dropdown-menu';
88
import * as Drawer from '../ui/drawer';
99
import type {Snippet} from 'svelte';
10-
import type {ContextMenuContentProps, DropdownMenuContentProps} from 'bits-ui';
10+
import type {ContextMenuContentProps} from 'bits-ui';
1111
import type {DrawerContentProps} from 'vaul-svelte';
1212
1313
type Props = {
1414
children?: Snippet;
1515
} & ContextMenuContentProps &
16-
DropdownMenuContentProps &
1716
DrawerContentProps;
1817
1918
let {children, ref = $bindable(null), ...rest}: Props = $props();

0 commit comments

Comments
 (0)