Skip to content

Commit

Permalink
remove roles and fix event order
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Aug 5, 2023
1 parent ce2b589 commit a21448e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/nextjs/pages/user/[username].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const QUERY_USER = gql`
colour
textColour
}
runs(orderBy: { scheduledTime: desc }) {
runs(orderBy: { scheduledTime: asc }) {
id
game
category
Expand Down Expand Up @@ -361,11 +361,11 @@ export default function ProfilePage(ssrData: ServerSideProps) {
</div>
<hr />
{/* Role List */}
<div className={styles.roleList}>
{/* <div className={styles.roleList}>
{ssrData.user.roles.map((role) => {
return <RoleBadge key={role.id} role={role} />;
})}
</div>
</div> */}
{/* Profile Information */}
<div className={styles.userInfo}>
{ssrData.user?.state !== "none" && (
Expand Down Expand Up @@ -466,7 +466,8 @@ export default function ProfilePage(ssrData: ServerSideProps) {
<Box>
<Tabs
value={eventTab}
onChange={(_e, newVal) => setEventTab(newVal)}>
onChange={(_e, newVal) => setEventTab(newVal)}
variant="scrollable">
{allRunEvents.reverse().map((event) => (
<Tab label={event} key={event} />
))}
Expand Down

0 comments on commit a21448e

Please sign in to comment.