Skip to content

Commit

Permalink
refactor(recipes): rename profiles page and routes to recipes (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 authored Apr 16, 2024
1 parent 55d9c6b commit 0388131
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import type { page_ProfilesPageQuery } from '@/__generated__/page_ProfilesPageQuery.graphql'
import type { page_RecipesPageQuery } from '@/__generated__/page_RecipesPageQuery.graphql'

import { Button, Card, Typography } from '@giantnodes/react'
import React, { Suspense } from 'react'
Expand All @@ -9,13 +9,13 @@ import { graphql, useLazyLoadQuery } from 'react-relay'
import { RecipeDialog, RecipeTable } from '@/components/interfaces/recipes'

const QUERY = graphql`
query page_ProfilesPageQuery($first: Int, $after: String, $order: [RecipeSortInput!]) {
query page_RecipesPageQuery($first: Int, $after: String, $order: [RecipeSortInput!]) {
...RecipeTableFragment @arguments(first: $first, after: $after, order: $order)
}
`

const RecipeListPage: React.FC = () => {
const query = useLazyLoadQuery<page_ProfilesPageQuery>(QUERY, {
const query = useLazyLoadQuery<page_RecipesPageQuery>(QUERY, {
first: 25,
order: [{ name: 'ASC' }],
})
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/layouts/dashboard/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const Sidebar: React.FC<SidebarProps> = ({ $key, ...rest }) => {
</Navigation.Item>

<Navigation.Item>
<Link legacyBehavior passHref href="/profiles">
<Navigation.Link isSelected={route === 'profiles'}>
<Link legacyBehavior passHref href="/recipes">
<Navigation.Link isSelected={route === 'recipes'}>
<IconTransform size={20} /> Recipes
</Navigation.Link>
</Link>
Expand Down

0 comments on commit 0388131

Please sign in to comment.