-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename orgs to clubs in all locations
- Loading branch information
Showing
22 changed files
with
113 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import AddOrg from '@src/components/admin/AddOrg'; | ||
import AddClub from '@src/components/admin/AddClub'; | ||
|
||
export default function Page() { | ||
return ( | ||
<div className="m-5 md:pl-72"> | ||
<h1 className="text-center text-4xl font-bold text-black"> | ||
Add Orgs to Carousel | ||
Add Clubs to Carousel | ||
</h1> | ||
<AddOrg /> | ||
<AddClub /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import OrgTable from '@src/components/admin/OrgTable'; | ||
import ClubTable from '@src/components/admin/ClubTable'; | ||
import { api } from '@src/trpc/server'; | ||
|
||
export default async function Page() { | ||
const clubs = await api.admin.allOrgs(); | ||
const clubs = await api.admin.allClubs(); | ||
return ( | ||
<div className="m-5 md:pl-72"> | ||
<OrgTable clubs={clubs} /> | ||
<ClubTable clubs={clubs} /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { type SelectClub } from '@src/server/db/models'; | ||
import AddOfficer from './AddOfficer'; | ||
import OfficerTable from './OfficerTable'; | ||
import ClubDescription from './ClubDescription'; | ||
import { api } from '@src/trpc/server'; | ||
import ChangeClubStatus from './ChangeClubStatus'; | ||
|
||
type Props = { club: SelectClub }; | ||
export default async function AcceptedClub({ club: club }: Props) { | ||
const officers = await api.club.getOfficers({ id: club.id }); | ||
|
||
return ( | ||
<> | ||
<h2 className="text-center text-2xl font-bold">Officers</h2> | ||
<div className="flex items-center justify-between"> | ||
<AddOfficer clubId={club.id} /> | ||
<ClubDescription club={club} /> | ||
</div> | ||
<OfficerTable officers={officers} /> | ||
<ChangeClubStatus status={club.approved} clubId={club.id} /> | ||
</> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.