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 205a9cd commit c9ba4fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/github/user/user.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ export default {
component: 'github-user',
tags: ['autodocs'],
render: (args) => {
console.log({...args})
console.log('args1', {...args})
let repos;
if (args.repos) {
repos = args.repos;
delete args.repos;
if (args.repos2) {
repos = args.repos2;
delete args.repos2;
}
console.log('args2', {...args})
let attributes = attrGen({...args});
console.log('attributes', {...attributes})
args.repos = repos;
if (repos) {
console.log('repos', repos)
Expand Down Expand Up @@ -49,7 +51,7 @@ export const UserRepos = {
args: {
...User.args,
name: 'Scoot Nerth',
repos: stringify([parseFetchedRepo(repoProfileComponents), parseFetchedRepo(repoStorydocker)]),
repos2: stringify([parseFetchedRepo(repoProfileComponents), parseFetchedRepo(repoStorydocker)]),
},
play: async ({ args, canvasElement, step }) => {
console.log('UserRepos = canva', canvasElement.closest('body').innerHTML)
Expand Down

0 comments on commit c9ba4fe

Please sign in to comment.