1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-16 20:05:31 -04:00

octicons weren't being tree-shaken -- import SVGs manually for now

This commit is contained in:
2022-01-01 18:14:04 -05:00
parent c47f5f917d
commit ddb48ef2ab
28 changed files with 67 additions and 87 deletions

View File

@@ -1,7 +1,7 @@
import { useState } from "react";
import HCaptcha from "@hcaptcha/react-hcaptcha";
import { CheckIcon, XIcon } from "@primer/octicons-react";
import SendIcon from "../icons/svg/send.svg";
import { CheckOcticon, XOcticon } from "../icons/octicons";
import { SendIcon } from "../icons";
import styles from "./ContactForm.module.scss";
@@ -131,7 +131,7 @@ export default function ContactForm() {
className={status.success ? styles.result_success : styles.result_error}
style={{ display: !status.message || sending ? "none" : null }}
>
{status.success ? <CheckIcon size={16} /> : <XIcon size={16} />} {status.message}
{status.success ? <CheckOcticon fill="CurrentColor" /> : <XOcticon fill="CurrentColor" />} {status.message}
</span>
</div>
</form>