update prettier config

This commit is contained in:
m5r
2021-08-01 20:04:04 +08:00
parent fdf9df243b
commit 7acbca65ce
33 changed files with 65 additions and 52 deletions

View File

@ -57,7 +57,7 @@ export default function Conversation() {
<div
className={clsx(
isSameNext ? "pb-1" : "pb-2",
isOutbound ? "text-right" : "text-left"
isOutbound ? "text-right" : "text-left",
)}
>
<span
@ -65,7 +65,7 @@ export default function Conversation() {
"inline-block text-left w-[fit-content] p-2 rounded-lg text-white",
isOutbound
? "bg-[#3194ff] rounded-br-none"
: "bg-black rounded-bl-none"
: "bg-black rounded-bl-none",
)}
>
{message.content}

View File

@ -25,7 +25,7 @@ const NewMessageArea: FunctionComponent<Props> = ({ recipient, onSend }) => {
const sendMessageMutation = useMutation(sendMessage)[0];
const { setQueryData: setConversationsQueryData, refetch: refetchConversations } = useQuery(
getConversationsQuery,
{}
{},
)[1];
const {
register,
@ -65,7 +65,7 @@ const NewMessageArea: FunctionComponent<Props> = ({ recipient, onSend }) => {
nextConversations[recipient] = [...nextConversations[recipient]!, message];
return nextConversations;
},
{ refetch: false }
{ refetch: false },
);
setValue("content", "");
onSend?.();