Adding Username (#2424)

pull/2421/head
sean-brydon 2022-04-09 15:40:02 +01:00 committed by GitHub
parent 0b9f6124e9
commit 399f4978f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ const ShowLinks = (eventLinks: IEventTypes[] | undefined, username: string) => {
Blocks.Divider(),
eventLinks.map((links) =>
Blocks.Section({
text: `${links.title} | ${WEBAPP_URL}/${links.slug}`,
}).accessory(Elements.Button({ text: "Open", url: `${WEBAPP_URL}/${links.slug}` }))
text: `${links.title} | ${WEBAPP_URL}/${username}/${links.slug}`,
}).accessory(Elements.Button({ text: "Open", url: `${WEBAPP_URL}/${username}/${links.slug}` }))
)
)
.buildToJSON();