-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
250 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import React from "react"; | ||
declare function App(): React.JSX.Element; | ||
export default App; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from "react"; | ||
import { AlbumModalProps } from "../types"; | ||
import "../styles/AlbumModal.css"; | ||
declare const AlbumModal: (props: AlbumModalProps) => React.JSX.Element; | ||
export default AlbumModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from "react"; | ||
import { ImageGalleryProps } from "../types"; | ||
import "../styles/ImageGallery.css"; | ||
declare const ImageGallery: (props: ImageGalleryProps) => React.JSX.Element; | ||
export default ImageGallery; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from "react"; | ||
import { SingleImageModalProps } from "../types"; | ||
import "../styles/SingleImageModal.css"; | ||
declare const SingleImageModal: (props: SingleImageModalProps) => React.JSX.Element; | ||
export default SingleImageModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as ImageGallery } from "./components/ImageGallery"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "./styles/Global.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
export { default as ImageGallery } from "./components/ImageGallery"; | ||
type BaseImageGalleryProps = { | ||
images: string[]; | ||
grid: "v1" | "v2"; | ||
}; | ||
type FullScreenProps = { | ||
fullScreen: true; | ||
width?: never; | ||
height?: never; | ||
}; | ||
type NonFullScreenProps = { | ||
fullScreen?: false; | ||
width: number; | ||
height: number; | ||
}; | ||
export type ImageGalleryProps = BaseImageGalleryProps & (FullScreenProps | NonFullScreenProps); | ||
export type AlbumModalProps = { | ||
images: string[]; | ||
onClose: () => void; | ||
onImageClick: (index: number) => void; | ||
selectedImageIndex: number; | ||
}; | ||
export type SingleImageModalProps = { | ||
images: string[]; | ||
currentIndex: number; | ||
onClose: () => void; | ||
onPrev: () => void; | ||
onNext: () => void; | ||
onThumbnailClick: (index: number) => void; | ||
}; | ||
export {}; |