mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 16:06:12 +02:00
rename archive to spotlights
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user