feat: use new mingcute icons

This commit is contained in:
DIYgod
2023-04-29 00:24:05 +01:00
parent d28faae2f9
commit 38d2a4c00a
4 changed files with 6 additions and 26 deletions
+2 -10
View File
@@ -1,17 +1,9 @@
import { SVGProps, useEffect, useState } from "react"
import { useEffect, useState } from "react"
import { throttle } from "~/lib/utils"
import { FABBase } from "../ui/FAB"
function BxBxsArrowToTop(props: SVGProps<SVGSVGElement>) {
return (
<svg width="1em" height="1em" viewBox="0 0 24 24" {...props}>
<path d="M6 4h12v2H6zm5 10v6h2v-6h5l-6-6l-6 6z" fill="currentColor" />
</svg>
)
}
const isShouldShow = () =>
document.documentElement.scrollTop > document.documentElement.clientHeight
@@ -39,7 +31,7 @@ export const BackToTopFAB: React.FC<{}> = () => {
})
}}
>
<BxBxsArrowToTop />
<i className="i-mingcute:arow-to-up-line"></i>
</FABBase>
)
}