Skip to content

Commit

Permalink
Update link paths in FeaturedCollections components to include query …
Browse files Browse the repository at this point in the history
…parameters
  • Loading branch information
jamalsoueidan committed Jul 14, 2024
1 parent 11e6b7b commit 4c61a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function FeaturedCollections() {
<UnstyledButton
key={nesCol.id}
component={Link}
to={`/categories/${nesCol.handle}`}
to={`/categories/${col.handle}?collection=${nesCol.handle}`}
>
<Title order={2} size="lg">
{nesCol.title}
Expand Down
4 changes: 1 addition & 3 deletions app/routes/categories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
Stack,
Title,
UnstyledButton,
useMantineTheme,
} from '@mantine/core';
import {Link, useLoaderData} from '@remix-run/react';
import {json, type LoaderFunctionArgs} from '@shopify/remix-oxygen';
Expand Down Expand Up @@ -58,7 +57,6 @@ export default function Collections() {
}

function FeaturedCollections() {
const theme = useMantineTheme();
const {t} = useTranslation(['index']);
const {rootCollection} = useLoaderData<typeof loader>();

Expand Down Expand Up @@ -88,7 +86,7 @@ function FeaturedCollections() {
<UnstyledButton
key={nesCol.id}
component={Link}
to={`/categories/${nesCol.handle}`}
to={`/categories/${col.handle}?collection=${nesCol.handle}`}
>
<Title order={2} size="lg">
{nesCol.title}
Expand Down

0 comments on commit 4c61a43

Please sign in to comment.