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 widthNumber = ((ar / rowAspectRatioSum) * 100).toFixed(7);
|
||||||
|
|
||||||
const width = `${widthNumber}%`;
|
const width = `${widthNumber}%`;
|
||||||
console.log(image.fields.imageMeta.dominantHue);
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
className={classNames(
|
className={classNames(
|
||||||
|
@ -15,7 +15,7 @@ const GalleryPage = ({ data }) => {
|
|||||||
R.map((edge) => edge.node),
|
R.map((edge) => edge.node),
|
||||||
debug
|
debug
|
||||||
? R.sortBy(R.path(["fields", "imageMeta", "dominantHue", 0]))
|
? R.sortBy(R.path(["fields", "imageMeta", "dominantHue", 0]))
|
||||||
: R.identity
|
: R.sortBy(R.path(["fields", "imageMeta", "vibrantHue"]))
|
||||||
)(data.allFile.edges),
|
)(data.allFile.edges),
|
||||||
[data, debug]
|
[data, debug]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user