Merge dev.

This commit is contained in:
Mike Cao 2025-02-03 12:35:02 -08:00
commit b3f8bbe3fc
10 changed files with 58 additions and 70 deletions

View file

@ -1,5 +1,5 @@
import { useState, useMemo, useEffect } from 'react';
import { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
import classNames from 'classnames';
import { Button, Loading, Toggle, SearchField } from 'react-basics';
import { firstBy } from 'thenby';

View file

@ -35,7 +35,7 @@ export function ShareUrl({ hostUrl, onSave }: { hostUrl?: string; onSave?: () =>
};
const handleCheck = (checked: boolean) => {
const data = { shareId: checked ? generateId() : null };
const data = { name: website.name, shareId: checked ? generateId() : null };
mutate(data, {
onSuccess: async () => {
touch(`website:${website.id}`);