Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 357406f

Browse files
authored
fix: Docs poll link (#1555)
1 parent 6099f75 commit 357406f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/stories/templates/Poll.stories.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default {
1414
};
1515

1616
export const Poll = ({pollLink, socketUrl}) => {
17+
const simpleLink = pollLink.replace('https://', '');
1718
return `<div class="container">
1819
<deckgo-deck embedded="true">
1920
<deckgo-slide-poll poll-link="${pollLink}" socket-url="${socketUrl}">
@@ -22,9 +23,9 @@ export const Poll = ({pollLink, socketUrl}) => {
2223
<p slot="answer-2">Meh</p>
2324
<p slot="answer-3">I could'nt care less</p>
2425
<p slot="answer-4">Tell me why</p>
25-
<p slot="how-to">Go to <a href="https://deckdeckgo.com/poll">deckdeckgo.com/poll</a> and use the code {0}</p>
26-
<p slot="awaiting-votes">Awaiting first votes</p>
2726
<p slot="answer-5">Ain't nothin' but a heartache</p>
27+
<p slot="how-to">Go to <a href="${pollLink}">${simpleLink}</a> and use the code {0}</p>
28+
<p slot="awaiting-votes">Awaiting first votes</p>
2829
</deckgo-slide-poll>
2930
</deckgo-deck>
3031
</div>`;

0 commit comments

Comments
 (0)