diff --git a/app/[leaflet_id]/actions/PublishButton.tsx b/app/[leaflet_id]/actions/PublishButton.tsx
index b2c719bf..1b7f82d2 100644
--- a/app/[leaflet_id]/actions/PublishButton.tsx
+++ b/app/[leaflet_id]/actions/PublishButton.tsx
@@ -29,7 +29,7 @@ export const PublishButton = () => {
let params = useParams();
let router = useRouter();
- if (!pub) return ;
+ if (!pub) return ;
if (!pub?.doc)
return (
{
);
};
-const PublishToPublication = () => {
+const PublishToPublicationButton = () => {
let { identity } = useIdentityData();
- let params = useParams();
- let router = useRouter();
+
let isMobile = useIsMobile();
- let hasPubs =
- identity && identity.atp_did && identity.publications.length > 0;
+ identity && identity.atp_did && identity.publications.length > 0;
+ let [selectedPub, setSelectedPub] = useState(undefined);
return (
{
-
+
Save as Draft
- Next
+
+ Next{selectedPub === "create" && ": Create Pub!"}
+
)}
@@ -154,6 +159,8 @@ const PostDetailsForm = () => {
};
const PubSelector = (props: {
+ selectedPub: string | undefined;
+ setSelectedPub: (s: string) => void;
publications: {
identity_did: string;
indexed_at: string;
@@ -163,15 +170,13 @@ const PubSelector = (props: {
}[];
}) => {
// HEY STILL TO DO
- // copy over the menuItem styles and apply them if the option has been selected
// test out logged out, logged in but no pubs, and pubbed up flows
- let [selectedPub, setSelectedPub] = useState(undefined);
return (