Skip to content

Commit

Permalink
[gn] rename to settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Feb 15, 2025
1 parent 6fb113f commit 52d737a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/gnocchi/web/src/pages/Pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { lazyWithPreload } from 'react-lazy-with-preload';
import { NotFoundPage } from './NotFoundPage.jsx';
import { GroceriesPage } from './groceries/GroceriesPage.js';

const PlanPage = lazyWithPreload(() => import('./PlanPage.jsx'));
const SettingsPage = lazyWithPreload(() => import('./SettingsPage.jsx'));
const RecipeViewPage = lazyWithPreload(
() => import('./recipe/RecipeViewPage.jsx'),
);
Expand Down Expand Up @@ -58,7 +58,7 @@ const routes = makeRoutes([
onVisited: () => {
PantryPage.preload();
PantryListPage.preload();
PlanPage.preload();
SettingsPage.preload();
RecipesPage.preload();
},
data: {
Expand All @@ -71,7 +71,7 @@ const routes = makeRoutes([
},
{
path: 'settings',
component: PlanPage,
component: SettingsPage,
data: {
left: '/recipes',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const contents = {
online: OnlineContents,
} as const;

export function PlanPage() {
export function SettingsPage() {
const offline = useIsOffline();
const isLoggedIn = useIsLoggedIn();
const canSync = useHasServerAccess();
Expand Down Expand Up @@ -82,7 +82,7 @@ export function PlanPage() {
);
}

export default PlanPage;
export default SettingsPage;

const MainContainer = ({ children }: { children: ReactNode }) => (
<div className="flex flex-col items-start w-full gap-4">{children}</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/storage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function ImportDataButton({
></input>
{children || (
<>
import Data <Icon name="upload" />
Import Data <Icon name="upload" />
</>
)}
</label>
Expand Down

0 comments on commit 52d737a

Please sign in to comment.