Skip to content

Commit

Permalink
fix: export PageTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandepass committed Mar 6, 2023
1 parent ff99ee6 commit e2d8ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/PageTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @param decorate The decorate method of the component
* @returns A fully decorated element for rendering in storybook
*/
export function Template(loadPage: any, args: any, context: any, decorate: any) {
export function PageTemplate(loadPage: any, args: any, context: any, decorate: any) {
const parser = new DOMParser();
const body = document.createElement('body');
const { parameters } = context;
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
*/

import { BlockTemplate } from './BlockTemplate';
import { PageTemplate } from './PageTemplate';
import { sourceDecorator } from './decorators/sourceDecorator';

// make it work with --isolatedModules
export default {};
export { BlockTemplate as FranklinTemplate };
export { BlockTemplate as FranklinBlock };
export { PageTemplate as FranklinPage };
export { sourceDecorator as FranklinSourceDecorator };

0 comments on commit e2d8ff9

Please sign in to comment.