Skip to content

Commit

Permalink
rounded college text, and addfiletile, and senior name changes
Browse files Browse the repository at this point in the history
git push
  • Loading branch information
johnny-t06 committed Mar 15, 2024
1 parent 7caa585 commit a09f47d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/AddSenior.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { patchSenior } from "src/app/api/senior/[id]/route.client";
import { postSenior } from "src/app/api/senior/route.client";
import z from "zod/lib";
import { seniorSchema } from "@server/model";
import { fullName } from "@utils";

type AddSeniorProps = {
seniors: Senior[];
Expand Down Expand Up @@ -79,10 +80,10 @@ const StudentSelector = ({
</div>
<FilterDropdown<User>
items={students}
filterMatch={(usr, term) => (usr.name ?? "").indexOf(term) != -1}
filterMatch={(usr, term) => fullName(usr).indexOf(term) != -1}
display={(usr: User) => (
<div className="m-1 flex whitespace-nowrap rounded-full bg-amber-red px-4 py-2 text-white">
{usr.name}
{fullName(usr)}
<div className="flex1 ml-3">
<button
type="button"
Expand Down
4 changes: 3 additions & 1 deletion src/components/SearchableContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const SearchableContainer = <T,>({
<SearchBar setFilter={setFilter} />
</div>
)}
{emptyNode != undefined && elements.length === 0 ? (
{emptyNode != undefined &&
addElementComponent === undefined &&
elements.length === 0 ? (
<>{emptyNode}</>
) : (
<CardGrid
Expand Down
2 changes: 1 addition & 1 deletion src/components/TileGrid/InfoTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const InfoTile = (params: InfoTileProps) => {
};

return (
<div className="flex h-fit w-full flex-col gap-y-4 rounded bg-white p-6 shadow-lg">
<div className="flex h-fit w-full flex-col gap-y-4 rounded-lg bg-white p-6 shadow-lg">
<div className="flex justify-between">
<Link
href={href ?? ""}
Expand Down

0 comments on commit a09f47d

Please sign in to comment.