Skip to content

Commit

Permalink
fix: add default export
Browse files Browse the repository at this point in the history
  • Loading branch information
igordanchenko committed Dec 25, 2021
1 parent da5574b commit d9344eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/index.tsx → src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Layout from "./Layout";
import PhotoAlbum from "./PhotoAlbum";
import ResponsivePhoto from "./ResponsivePhoto";

export { Layout, PhotoAlbum, ResponsivePhoto };

export * from "./types";

export { PhotoAlbum, ResponsivePhoto, Layout };
export default PhotoAlbum;
2 changes: 1 addition & 1 deletion test/PhotoAlbum.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import renderer from "react-test-renderer";

import { PhotoAlbum } from "../src";
import PhotoAlbum from "../src";
import Layout from "../src/Layout";
import photos from "./photos";

Expand Down

0 comments on commit d9344eb

Please sign in to comment.