remove log and apply client side sort
This commit is contained in:
parent
15c8f57e98
commit
84ee824eab
@ -101,7 +101,6 @@ const MasonryGallery = ({
|
||||
const widthNumber = ((ar / rowAspectRatioSum) * 100).toFixed(7);
|
||||
|
||||
const width = `${widthNumber}%`;
|
||||
console.log(image.fields.imageMeta.dominantHue);
|
||||
return (
|
||||
<Link
|
||||
className={classNames(
|
||||
|
@ -15,7 +15,7 @@ const GalleryPage = ({ data }) => {
|
||||
R.map((edge) => edge.node),
|
||||
debug
|
||||
? R.sortBy(R.path(["fields", "imageMeta", "dominantHue", 0]))
|
||||
: R.identity
|
||||
: R.sortBy(R.path(["fields", "imageMeta", "vibrantHue"]))
|
||||
)(data.allFile.edges),
|
||||
[data, debug]
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user