rename archive to spotlights

This commit is contained in:
Mark
2021-10-24 16:35:05 +01:00
parent 3aa18ba885
commit 4d000252ec
31 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import * as SC from "./styles"
const ALL_ARCHIVES = graphql`
query {
archives: allFile(
filter: { sourceInstanceName: { eq: "what-is-archive" } }
filter: { sourceInstanceName: { eq: "spotlights" } }
) {
edges {
node {
@@ -44,7 +44,7 @@ function Tree({ item }: { item: IFileOrFolder }) {
export const ArchivesSidebar: FC<HTMLAttributes<HTMLDivElement>> = (props) => {
const { archives } = useStaticQuery(ALL_ARCHIVES)
const tree = useBuildTree(archives, "/archives")
const tree = useBuildTree(archives, "/spotlights")
const sortedTree = sort((a, b) => a.title.localeCompare(b.title), tree)
return (