feat: use new mingcute icons
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user