-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5121 from kiva/ACK-913-make-thanks-page-completed…
…-text-clickable feat: add link back to team challenge page
- Loading branch information
Showing
4 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import NotifyMe from '@/components/Thanks/NotifyMe'; | ||
|
||
export default { | ||
title: 'Components/Notify Me', | ||
component: NotifyMe, | ||
}; | ||
|
||
const story = (args = {}) => { | ||
const template = (_args, { argTypes }) => ({ | ||
props: Object.keys(argTypes), | ||
components: { NotifyMe }, | ||
template: '<notify-me :goal="goal" email="[email protected]" :teamPublicId="teamPublicId" />', | ||
}) | ||
template.args = args; | ||
return template; | ||
}; | ||
|
||
const future = new Date(); | ||
future.setDate(future.getDate() + 2); | ||
|
||
const goal = { | ||
endDate: future.toISOString(), | ||
targets: { | ||
totalCount: 2, | ||
values: [ | ||
{ status: 'COMPLETE' }, | ||
{ status: 'IN_PROGRESS' }, | ||
] | ||
} | ||
} | ||
|
||
export const Default = story({ goal }); | ||
|
||
export const Team = story({ goal, teamPublicId: 'aplus' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters