replace fontawesome icons with ionicons 5
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import { Link, useQuery, Routes } from "blitz";
|
||||
import { faChevronRight } from "@fortawesome/pro-regular-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { IoChevronForward } from "react-icons/io5";
|
||||
|
||||
import getConversationsQuery from "../queries/get-conversations";
|
||||
import { formatRelativeDate } from "../../core/helpers/date-formatter";
|
||||
@ -24,7 +23,7 @@ export default function ConversationsList() {
|
||||
<strong>{formattedPhoneNumber}</strong>
|
||||
<div className="text-gray-700 flex flex-row gap-x-1">
|
||||
{formatRelativeDate(lastMessage.sentAt)}
|
||||
<FontAwesomeIcon className="w-4 h-4 my-auto" icon={faChevronRight} />
|
||||
<IoChevronForward className="w-4 h-4 my-auto" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="line-clamp-2 text-gray-700">{lastMessage.content}</div>
|
||||
|
@ -1,7 +1,6 @@
|
||||
import type { FunctionComponent } from "react";
|
||||
import { useMutation, useQuery } from "blitz";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faPaperPlane } from "@fortawesome/pro-regular-svg-icons";
|
||||
import { IoSend } from "react-icons/io5";
|
||||
import { useForm } from "react-hook-form";
|
||||
|
||||
import sendMessage from "../mutations/send-message";
|
||||
@ -99,7 +98,7 @@ const NewMessageArea: FunctionComponent<Props> = ({ recipient, onSend }) => {
|
||||
{...register("content", { required: true })}
|
||||
/>
|
||||
<button type="submit">
|
||||
<FontAwesomeIcon size="2x" className="h-8 w-8 pl-1 pr-2" icon={faPaperPlane} />
|
||||
<IoSend className="h-8 w-8 pl-1 pr-2" />
|
||||
</button>
|
||||
</form>
|
||||
);
|
||||
|
@ -1,6 +1,5 @@
|
||||
import type { FunctionComponent, MouseEventHandler } from "react";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faEdit } from "@fortawesome/pro-regular-svg-icons";
|
||||
import { IoCreateOutline } from "react-icons/io5";
|
||||
|
||||
type Props = {
|
||||
onClick: MouseEventHandler<HTMLButtonElement>;
|
||||
@ -13,7 +12,7 @@ const NewMessageButton: FunctionComponent<Props> = ({ onClick }) => {
|
||||
className="absolute bottom-20 right-6
|
||||
w-14 h-14 bg-gray-800 rounded-full hover:bg-gray-900 active:shadow-lg shadow transition ease-in duration-200 focus:outline-none"
|
||||
>
|
||||
<FontAwesomeIcon size="lg" className="m-auto pl-1.5 text-white w-8 h-8" icon={faEdit} />
|
||||
<IoCreateOutline className="m-auto pl-1.5 text-white w-8 h-8" />
|
||||
</button>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user