Skip to content

Conversation

@SierraTran
Copy link
Contributor

@SierraTran SierraTran commented Oct 24, 2025

Closes: #1062
Closes: #1054

@SierraTran SierraTran self-assigned this Oct 24, 2025
Copy link
Contributor

@cowsed cowsed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the default to https, thats really nice. just the one thing about the switch and i think this is good

const navigate = useNavigate();


const [showLinkFields, setShowLinkFields] = useState(!!announcementDraft.linkUrl || !!announcementDraft.linkText);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When testing this, it seems like the default value of this isnt getting calculated just right. If i add a link and link text to an announcement, then save and close it, then reopen it, the Link Button switch is set to off. If i turn it on manually it shows the saved fields just fine though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recently pushed a commit (64e5ce4) to remedy this. The useEffect looks clunky to me but I could be overthinking it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Announcements Optional Link button Give a preview of the announcement cards when editing or creating an announcement

4 participants