Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasrice committed Jan 3, 2020
1 parent f767559 commit d21b85e
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions packages/fast-component-explorer/app/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,20 @@ function setViewConfigsWithCustomConfig(
): ObjectOfComponentViewConfigs {
const componentViewConfigs: ObjectOfComponentViewConfigs = {};

Object.keys(viewConfigs).forEach(
(viewConfigKey: string): void => {
componentViewConfigs[viewConfigKey] = Object.assign(
{},
viewConfigs[viewConfigKey],
{
scenarios: [
{
displayName: "Custom",
data: viewConfigs[viewConfigKey].scenarios[0].data,
},
].concat(viewConfigs[viewConfigKey].scenarios),
}
);
}
);
Object.keys(viewConfigs).forEach((viewConfigKey: string): void => {
componentViewConfigs[viewConfigKey] = Object.assign(
{},
viewConfigs[viewConfigKey],
{
scenarios: [
{
displayName: "Custom",
data: viewConfigs[viewConfigKey].scenarios[0].data,
},
].concat(viewConfigs[viewConfigKey].scenarios),
}
);
});

return componentViewConfigs;
}
Expand Down

0 comments on commit d21b85e

Please sign in to comment.