Update prettier to v2.0.1 and enable for SCSS (#420)

This commit is contained in:
InfiniteTF
2020-04-03 01:29:33 +02:00
committed by GitHub
parent ad7bfb8dbf
commit 66cb7f4928
98 changed files with 1365 additions and 1299 deletions

View File

@@ -29,14 +29,14 @@ export const GalleryViewer: FunctionComponent<IProps> = ({ gallery }) => {
setCurrentImage(currentImage + 1);
}
const photos = gallery.files.map(file => ({
const photos = gallery.files.map((file) => ({
src: file.path ?? "",
caption: file.name ?? ""
caption: file.name ?? "",
}));
const thumbs = gallery.files.map(file => ({
const thumbs = gallery.files.map((file) => ({
src: `${file.path}?thumb=true` || "",
width: 1,
height: 1
height: 1,
}));
return (