clean-up edit forms, removed unused params

This commit is contained in:
Francis Cao 2024-02-06 12:25:21 -08:00
parent 3277b65993
commit 74ea4f511e
4 changed files with 11 additions and 19 deletions

View file

@ -13,12 +13,7 @@ import { DOMAIN_REGEX } from 'lib/constants';
import { touch } from 'store/modified';
import { WebsiteContext } from 'app/(main)/websites/[websiteId]/WebsiteProvider';
export function WebsiteEditForm({
websiteId,
}: {
websiteId: string;
onSave?: (data: any) => void;
}) {
export function WebsiteEditForm({ websiteId }: { websiteId: string }) {
const website = useContext(WebsiteContext);
const { formatMessage, labels, messages } = useMessages();
const { post, useMutation } = useApi();