Skip to content

Commit

Permalink
simplr
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnath committed Mar 5, 2024
1 parent 354dcb3 commit 4add95e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.js
Expand Up @@ -3,7 +3,7 @@ import { mergeConfig } from 'vite';
import turbosnap from 'vite-plugin-turbosnap';
/** @type { import('@storybook/web-components-vite').StorybookConfig } */
const config = {
stories: ['../src/github/*.mdx', '../src/github/user/user.stories.@(js|jsx|ts|tsx)'],
stories: ['../src/github/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-essentials',
'@storybook/addon-a11y',
Expand Down
30 changes: 15 additions & 15 deletions src/github/user/user.stories.js
Expand Up @@ -13,21 +13,21 @@ export default {
component: 'github-user',
tags: ['autodocs'],
render: (args) => {
let repos;
if (args.repos) {
repos = args.repos;
delete args.repos;
}
let attributes = attrGen({...args});
console.log('attributes', attributes)
args.repos = repos;
if (repos) {
console.log('repos', repos)
console.log('typeofrepos', typeof repos)
if (typeof repos !== 'string') repos = stringinator(repos);
console.log('repos>>2', repos)
attributes += `\nrepos="${repos}"`;
}
// let repos;
// if (args.repos) {
// repos = args.repos;
// delete args.repos;
// }
const attributes = attrGen({...args});
// console.log('attributes', attributes)
// args.repos = repos;
// if (repos) {
// console.log('repos', repos)
// console.log('typeofrepos', typeof repos)
// if (typeof repos !== 'string') repos = stringinator(repos);
// console.log('repos>>2', repos)
// attributes += `\nrepos="${repos}"`;
// }
console.log('ATTRIBUTES', attributes)

return `
Expand Down

0 comments on commit 4add95e

Please sign in to comment.