a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add back updatepub call

I have no idea when this got removed

+10 -1
+10 -1
app/lish/createPub/UpdatePubForm.tsx
··· 3 3 import { ButtonPrimary } from "components/Buttons"; 4 4 import { Input } from "components/Input"; 5 5 import React, { useState, useRef, useEffect } from "react"; 6 - import { updatePublicationBasePath } from "./updatePublication"; 6 + import { 7 + updatePublication, 8 + updatePublicationBasePath, 9 + } from "./updatePublication"; 7 10 import { usePublicationData } from "../[did]/[publication]/dashboard/PublicationSWRProvider"; 8 11 import { PubLeafletPublication } from "lexicons/api"; 9 12 import useSWR, { mutate } from "swr"; ··· 45 48 if (!pubData) return; 46 49 e.preventDefault(); 47 50 setFormState("loading"); 51 + let data = await updatePublication({ 52 + uri: pubData.uri, 53 + name: nameValue, 54 + description: descriptionValue, 55 + iconFile: iconFile, 56 + }); 48 57 toast({ type: "success", content: "Updated!" }); 49 58 setFormState("normal"); 50 59 mutate("publication-data");