diff --git a/src/components/ArchivesSidebar/index.tsx b/src/components/ArchivesSidebar/index.tsx index 7f4c136..4a30c3e 100644 --- a/src/components/ArchivesSidebar/index.tsx +++ b/src/components/ArchivesSidebar/index.tsx @@ -1,5 +1,5 @@ import { graphql, useStaticQuery } from "gatsby" -import { sort } from "ramda" +import sort from "ramda/es/sort" import React, { FC, HTMLAttributes } from "react" import useBuildTree from "../../hooks/useBuildTree" import { useLockBodyScroll } from "../../hooks/useLockBodyScroll" diff --git a/src/components/ResourcesList/index.tsx b/src/components/ResourcesList/index.tsx index e1987ec..d100f89 100644 --- a/src/components/ResourcesList/index.tsx +++ b/src/components/ResourcesList/index.tsx @@ -1,5 +1,5 @@ import { graphql, useStaticQuery } from "gatsby" -import { sort } from "ramda" +import sort from "ramda/es/sort" import React, { FC, HTMLAttributes, memo } from "react" import "react-perfect-scrollbar/dist/css/styles.css" import { IAllResourcesQuery, IFileOrFolder, IFolder } from "../../types" diff --git a/src/components/ResourcesSidebar/index.tsx b/src/components/ResourcesSidebar/index.tsx index 1163530..1cf6e8d 100644 --- a/src/components/ResourcesSidebar/index.tsx +++ b/src/components/ResourcesSidebar/index.tsx @@ -1,5 +1,7 @@ import { graphql, useStaticQuery } from "gatsby" -import { descend, sort, sortWith } from "ramda" +import descend from "ramda/es/descend" +import sort from "ramda/es/sort" +import sortWith from "ramda/es/sortWith" import React, { FC, HTMLAttributes, memo, useState } from "react" import useBuildTree from "../../hooks/useBuildTree" import { useLockBodyScroll } from "../../hooks/useLockBodyScroll"