Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: normalize profile mentions #604

Merged
merged 4 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion layout/Attendee/Wheel/Wheel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ function WheelPage() {
.then((response) => updateLatestWins(response.data))
.catch((_) => updateError(true));
};

useEffect(requestAllInfo, []);

const canSpin = () => {
Expand Down
2 changes: 0 additions & 2 deletions layout/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ const BadgeSlug: React.FC = () => {
.catch((_) => router.replace("/404"));
}, [slug]);

console.log(badge);

return (
<Layout
title={`${badge?.name} Badge`}
Expand Down
19 changes: 9 additions & 10 deletions layout/shared/Leaderboard/components/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,24 @@ import Link from "next/link";

export default function Table({ list, user, maxUsersToShow }) {
const toShow = list.slice(0, Math.min(maxUsersToShow, list.length));

const rows = toShow.map((entry, id) => (
<div key={id} className=" flex h-auto border-t-2 border-t-slate-300 p-4">
<div
className={`w-1/3 text-left font-iregular ${
entry.id == user ? "text-quinary" : ""
}`}
className={`w-1/3 text-left font-iregular ${entry.id == user ? "text-quinary" : ""
}`}
>
{id + 1}
</div>
<div
className={`w-1/3 text-center font-ibold ${
entry.id == user ? "text-quinary" : ""
}`}
className={`w-1/3 text-center font-ibold ${entry.id == user ? "text-quinary" : ""
}`}
>
<Link href={`/attendees/${entry.id}`}>{entry.name}</Link>
<Link href={`/attendees/${entry.nickname}`}>{entry.name}</Link>
</div>
<div
className={`w-1/3 text-right font-iregular ${
entry.id == user ? "text-quinary" : ""
}`}
className={`w-1/3 text-right font-iregular ${entry.id == user ? "text-quinary" : ""
}`}
>
{entry.badges}
</div>
Expand Down Expand Up @@ -57,6 +55,7 @@ export default function Table({ list, user, maxUsersToShow }) {
</div>
);


return (
<div className="overflow-hidden">
<div className="mt-12 h-8 select-none grid-cols-3 pt-2">
Expand Down
Loading