mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 01:55:36 +01:00
Refactored exports.
This commit is contained in:
parent
1baf4d5571
commit
8bddc666b4
110 changed files with 317 additions and 124 deletions
|
|
@ -4,7 +4,7 @@ import useApi from 'hooks/useApi';
|
|||
import { DOMAIN_REGEX } from 'lib/constants';
|
||||
import useMessages from 'hooks/useMessages';
|
||||
|
||||
export default function WebsiteEditForm({ websiteId, data, onSave }) {
|
||||
export function WebsiteEditForm({ websiteId, data, onSave }) {
|
||||
const { formatMessage, labels, messages } = useMessages();
|
||||
const { post, useMutation } = useApi();
|
||||
const { mutate, error } = useMutation(data => post(`/websites/${websiteId}`, data));
|
||||
|
|
@ -49,3 +49,5 @@ export default function WebsiteEditForm({ websiteId, data, onSave }) {
|
|||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
export default WebsiteEditForm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue