Skip to content

Commit

Permalink
refactor: /user to /users (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Aug 14, 2023
1 parent df48c06 commit 6f5fbcb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/UserPostedAt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function UserPostedAt(
size={24}
class="mr-2"
/>
<a class="hover:underline" href={`/user/${props.userLogin}`}>
<a class="hover:underline" href={`/users/${props.userLogin}`}>
{props.userLogin}
</a>{" "}
{timeAgo(new Date(props.createdAt))} ago
Expand Down
4 changes: 2 additions & 2 deletions fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import * as $23 from "./routes/pricing.tsx";
import * as $24 from "./routes/signin.ts";
import * as $25 from "./routes/signout.ts";
import * as $26 from "./routes/submit.tsx";
import * as $27 from "./routes/user/[login].tsx";
import * as $27 from "./routes/users/[login].tsx";
import * as $$0 from "./islands/Chart.tsx";
import * as $$1 from "./islands/PageInput.tsx";
import * as $$2 from "./islands/VoteButton.tsx";
Expand Down Expand Up @@ -63,7 +63,7 @@ const manifest = {
"./routes/signin.ts": $24,
"./routes/signout.ts": $25,
"./routes/submit.tsx": $26,
"./routes/user/[login].tsx": $27,
"./routes/users/[login].tsx": $27,
},
islands: {
"./islands/Chart.tsx": $$0,
Expand Down
2 changes: 1 addition & 1 deletion routes/dashboard/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function UsersTable(props: { users: User[] }) {
<GitHubAvatarImg login={user.login} size={32} />
<a
class="hover:underline ml-4 align-middle"
href={"/user/" + user.login}
href={"/users/" + user.login}
>
{user.login}
</a>
Expand Down
4 changes: 2 additions & 2 deletions routes/pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ function EnterprisePricingCard() {
<p>
<Check class={CHECK_STYLES} />
Direct line to{" "}
<a href="/user/lambtron" class="text-secondary">Andy</a> and{" "}
<a href="/user/iuioiua" class="text-secondary">Asher</a>
<a href="/users/lambtron" class="text-secondary">Andy</a> and{" "}
<a href="/users/iuioiua" class="text-secondary">Asher</a>
</p>
<p>
<Check class={CHECK_STYLES} />
Expand Down
File renamed without changes.

0 comments on commit 6f5fbcb

Please sign in to comment.