Skip to content

Commit

Permalink
微修正
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm committed Nov 1, 2024
1 parent c1d33d2 commit fe87968
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
13 changes: 7 additions & 6 deletions pos/app/components/atoms/ReadyBell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { WithId } from "common/lib/typeguard";
import type { OrderEntity } from "common/models/order";
import { HiBell, HiBellAlert } from "react-icons/hi2";
import { cn } from "~/lib/utils";
import { Button } from "../ui/button";

type props = {
order: WithId<OrderEntity>;
Expand All @@ -11,24 +12,24 @@ type props = {
export const ReadyBell = ({ order, changeReady }: props) => {
const isReady = order.readyAt != null;
return (
<button
<Button
type="button"
onClick={() => changeReady(!isReady)}
className="flex w-24 flex-col items-center"
className="flex h-16 w-20 flex-col items-cente bg-stone-200 hover:bg-orange-200"
>
{isReady ? (
<HiBellAlert className="h-7 w-7 fill-orange-600" />
) : (
<HiBell className="h-7 w-7 fill-stone-400" />
<HiBell className="h-7 w-7 fill-stone-500" />
)}
<span
className={cn(
"text-xs",
isReady ? "text-orange-600" : "text-stone-400",
isReady ? "text-orange-600" : "text-stone-500",
)}
>
{isReady ? "呼び出し中" : "呼び出しボタン"}
{isReady ? "呼び出し中" : "呼び出し"}
</span>
</button>
</Button>
);
};
2 changes: 1 addition & 1 deletion pos/app/routes/_header.master.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default function FielsOfMaster() {
{isReady && (
<div className="mt-5 flex items-center">
<LuHourglass className="mr-1 h-5 w-5 stroke-yellow-600" />
<p className="">提供待ち</p>
<p className="text-yellow-700">提供待ち</p>
</div>
)}
</CardContent>
Expand Down
3 changes: 2 additions & 1 deletion pos/app/routes/_header.serve.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function Serve() {
</div>
)}
<InputComment order={order} addComment={addComment} />
<div className="mt-4 flex justify-between">
<div className="mt-4 flex justify-between items-center">
<ReadyBell
order={order}
changeReady={(ready) => changeReady(order, ready)}
Expand All @@ -185,6 +185,7 @@ export default function Serve() {
},
});
}}
className="h-16 w-16 bg-green-700 text-lg hover:bg-green-500 "
>
提供
</Button>
Expand Down

0 comments on commit fe87968

Please sign in to comment.