Skip to content

Commit

Permalink
admin page style adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghy2130 committed Oct 13, 2024
1 parent 2765465 commit 940318a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/routes/admin/ProductDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default function ProductDetails({ mode, updateFormState }: Props) {
}}
/>
<button
className="bg-primaryColor text-primaryTextColor"
className="bg-primaryColor p-2 text-primaryTextColor"
type="button"
onClick={addTag}
>
Expand Down Expand Up @@ -330,7 +330,7 @@ export default function ProductDetails({ mode, updateFormState }: Props) {
/>

<button
className="bg-primaryColor text-primaryTextColor"
className="mt-4 bg-primaryColor p-2 text-primaryTextColor"
type="submit"
disabled={isSubmitting}
>
Expand Down
6 changes: 3 additions & 3 deletions app/routes/admin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ export default function Admin() {
if (!isEditor) return <h1>Access denied.</h1>;

return (
<div className="flex flex-col items-center">
<div className="flex w-full max-w-[800px] flex-col items-center">
<div className="flex w-full flex-row items-center justify-around">
<button
className="bg-primaryColor text-primaryTextColor enabled:cursor-pointer disabled:opacity-30"
className="bg-primaryColor p-2 text-primaryTextColor enabled:cursor-pointer disabled:opacity-30"
onClick={createBtnClicked}
disabled={mode === "CREATE"}
>
Expand All @@ -127,7 +127,7 @@ export default function Admin() {
}}
/>
<button
className="bg-primaryColor text-primaryTextColor"
className="bg-primaryColor p-2 text-primaryTextColor"
onClick={getProductBtnClicked}
>
Load existing product
Expand Down

0 comments on commit 940318a

Please sign in to comment.