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 -4
View File
@@ -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>
+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>
)
}