Skip to content

Commit

Permalink
Update user.stories.js
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnath committed Mar 5, 2024
1 parent 0b13ba7 commit 804e9f4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/github/user/user.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ export default {
tags: ['autodocs'],
render: (args) => {
console.log({...args})
const attributes = attrGen(args);
let repos;
if (args.repos) {
repos = args.repos;
delete args.repos;
}
let attributes = attrGen({...args});
if (repos) {
attributes += `\nrepos="${repos}"`;
}
console.log('ATTRIBUTES', attributes)

return `
<github-user ${attributes}></github-user>
Expand Down

0 comments on commit 804e9f4

Please sign in to comment.