feat: use new mingcute icons
This commit is contained in:
@@ -47,16 +47,14 @@ export const PublishButton: React.FC<{
|
||||
{published && (
|
||||
<Button
|
||||
isAutoWidth
|
||||
style={{ padding: "0 5px" }}
|
||||
style={{ padding: "0 8px" }}
|
||||
onClick={() => {
|
||||
setShowDropdown(!showDropdown)
|
||||
}}
|
||||
ref={triggerRef}
|
||||
isDisabled={isSaving}
|
||||
>
|
||||
<svg className="w-7 h-7" viewBox="0 0 24 24">
|
||||
<path fill="currentColor" d="m7 10l5 5l5-5z"></path>
|
||||
</svg>
|
||||
<i className="i-mingcute:down-line" />
|
||||
</Button>
|
||||
)}
|
||||
</ButtonGroup>
|
||||
|
||||
@@ -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