Skip to content

Commit

Permalink
chore: use ~ in file path wherever possible (remix-run#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Mar 15, 2022
1 parent 377dee5 commit 40398d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/session.server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { createCookieSessionStorage, redirect } from "remix";
import invariant from "tiny-invariant";
import type { User } from "./models/user.server";
import { getUserById } from "./models/user.server";

import type { User } from "~/models/user.server";
import { getUserById } from "~/models/user.server";

invariant(process.env.SESSION_SECRET, "SESSION_SECRET must be set");

Expand Down
3 changes: 2 additions & 1 deletion app/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { User } from "./models/user.server";
import { useMemo } from "react";
import { useMatches } from "remix";

import type { User } from "~/models/user.server";

/**
* This base hook is used in other hooks to quickly search for specific data
* across all loader data using useMatches.
Expand Down

0 comments on commit 40398d9

Please sign in to comment.