Skip to content

Commit

Permalink
fix styling for edit
Browse files Browse the repository at this point in the history
  • Loading branch information
blackmann committed Jun 3, 2024
1 parent 2a72ab2 commit 441e96d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion client/app/components/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Button = React.forwardRef<HTMLButtonElement, Props>(
className={clsx(
"inline-flex items-center gap-2 rounded-lg bg-blue-600 px-2 py-1 font-medium",
{
"!bg-zinc-200 px-2 py-1 !dark:bg-neutral-800":
"bg-zinc-200 px-2 py-1 !dark:bg-neutral-800":
variant === "neutral",
"text-white": variant === "primary",
"!bg-amber-500 text-white": variant === "secondary",
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/large-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function LargeSelect({
return (
<>
<button
className="!bg-zinc-200 !dark:bg-neutral-800 px-2 py-1 rounded-lg font-medium flex-1 text-start flex items-center w-full"
className="bg-zinc-200 dark:bg-neutral-800 px-2 py-1 rounded-lg font-medium flex-1 text-start flex items-center w-full"
type="button"
onClick={() => onToggle(true)}
>
Expand Down
4 changes: 2 additions & 2 deletions client/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "virtual:uno.css";

import "@unocss/reset/tailwind.css";

import "virtual:uno.css";
import "./style.css";

import type { User } from "@prisma/client";
Expand Down
13 changes: 4 additions & 9 deletions client/app/routes/market_.$id_.edit.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import {
ActionFunctionArgs,
LoaderFunctionArgs,
MetaFunction,
redirect,
type ActionFunctionArgs,
type LoaderFunctionArgs,
type MetaFunction,
} from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { ProductForm } from "~/components/product-form";
import { checkAuth } from "~/lib/check-auth";
import { prisma } from "~/lib/prisma.server";
import {
forbidden,
methodNotAllowed,
notFound
} from "~/lib/responses";
import { forbidden, methodNotAllowed, notFound } from "~/lib/responses";
import { values } from "~/lib/values.server";

export const loader = async ({ request, params }: LoaderFunctionArgs) => {
Expand Down Expand Up @@ -60,7 +56,6 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
};

export const meta: MetaFunction<typeof loader> = ({ data }) => {
// [ ] Add og image
return [
{ title: `Edit ${data?.product.name} | ${data?.school.shortName} ✽ compa` },
{
Expand Down

0 comments on commit 441e96d

Please sign in to comment.