Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jul 7, 2021
1 parent 4166959 commit d139f75
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/react/src/client/preview/index.tsx
Expand Up @@ -10,11 +10,6 @@ import { Story } from './types-6-3';

const framework = 'react';

const globalRender: Story = (args, { parameters }) => {
const Component = parameters.component;
return <Component {...args} />;
};

interface ClientApi extends ClientStoryApi<StoryFnReactReturnType> {
setAddon(addon: any): void;
configure(loader: Loadable, module: NodeModule): void;
Expand All @@ -24,6 +19,11 @@ interface ClientApi extends ClientStoryApi<StoryFnReactReturnType> {
raw: () => any; // todo add type
}

const globalRender: Story = (args, { parameters }) => {
const Component = parameters.component;
return <Component {...args} />;
};

const api = start(render);
api.clientApi.globalRender = globalRender;

Expand Down

0 comments on commit d139f75

Please sign in to comment.