Skip to content

Commit

Permalink
Merge pull request #127 from traP-jp/client/fix/input-message-button
Browse files Browse the repository at this point in the history
fix: InputMessageコンポーネントでボタンをAnt DesignのButtonコンポーネントに置き換え
  • Loading branch information
reiroop authored Jan 26, 2025
2 parents 32fe748 + 3af8461 commit 41adaa3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions client/src/components/InputMessage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SendOutlined } from "@ant-design/icons";
import { Input } from "antd";
import React, { useCallback, useState } from "react";
import { Button, Input } from "antd";
import { useAtomValue } from "jotai";
import React, { useCallback, useState } from "react";
import { useCreateMessage } from "../api/message";
import { roundedUserPositionAtom } from "../state/userPosition";
const { TextArea } = Input;
Expand Down Expand Up @@ -61,14 +61,12 @@ export const InputMessage: React.FC = () => {
onBlur={handleBlur}
onKeyDown={handleKeyDown}
/>
<button
<Button
className="size-6 mb-1"
onClick={sendMessage}
type="button"
disabled={isSending}
>
<SendOutlined role="img" aria-label="Send Message" />
</button>
icon={<SendOutlined />}
/>
</div>
);
};

0 comments on commit 41adaa3

Please sign in to comment.