fix centering

This commit is contained in:
Braydon 2024-04-17 23:40:38 -04:00
parent 56563802be
commit 4494bd74ec
2 changed files with 3 additions and 5 deletions

@ -21,16 +21,14 @@ type PlayerSearchProps = {
* @param query the query to search for
* @returns the search component jsx
*/
const PlayerSearch = ({
query,
}: PlayerSearchProps): ReactElement => {
const PlayerSearch = ({ query }: PlayerSearchProps): ReactElement => {
const handleRedirect = async (form: FormData): Promise<void> => {
"use server";
redirect(`/player/${form.get("query")}`);
};
return (
<form
className="flex flex-col gap-7 items-center"
className="flex flex-col gap-7 justify-center items-center"
action={handleRedirect}
>
<div className="w-full flex flex-col gap-3">

@ -44,7 +44,7 @@ const ServerSearch = ({
};
return (
<form
className="flex flex-col gap-7 items-center"
className="flex flex-col gap-7 justify-center items-center"
action={handleRedirect}
>
<div className="w-full flex gap-2">