a tool for shared writing and social publishing
0
fork

Configure Feed

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

set domain to settings after adding

+7 -2
+7 -2
app/lish/createPub/UpdatePubForm.tsx
··· 146 146 <AddDomain 147 147 publication_uri={pubData.uri} 148 148 goBack={() => setState({ type: "default" })} 149 + setDomain={(d) => setState({ type: "domainSettings", domain: d })} 149 150 /> 150 151 ) : state.type === "domainSettings" ? ( 151 152 <DomainSettings ··· 186 187 ); 187 188 } 188 189 189 - function AddDomain(props: { publication_uri: string; goBack: () => void }) { 190 + function AddDomain(props: { 191 + publication_uri: string; 192 + goBack: () => void; 193 + setDomain: (d: string) => void; 194 + }) { 190 195 let [domain, setDomain] = useState(""); 191 196 let smoker = useSmoker(); 192 197 ··· 231 236 } 232 237 233 238 mutate("publication-data"); 234 - props.goBack(); 239 + props.setDomain(domain); 235 240 }} 236 241 type="button" 237 242 >