load navbar icon with priority

This commit is contained in:
spencerwooo 2021-12-29 15:26:04 +08:00
parent 5bc8fc4a67
commit 29df9bc9cb
No known key found for this signature in database
GPG key ID: 24CD550268849CA0
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ const Navbar = () => {
<div className="flex items-center justify-between w-full max-w-5xl mx-auto pr-4 py-1">
<Link href="/">
<a className="dark:text-white hover:opacity-80 flex items-center p-2 space-x-2">
<Image src={siteConfig.icon} alt="icon" width="28" height="28" />
<Image src={siteConfig.icon} alt="icon" width="28" height="28" priority />
<span className="sm:block hidden text-lg font-bold">{siteConfig.title}</span>
</a>
</Link>

View file

@ -39,7 +39,7 @@ const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => {
onClickCallback={() =>
window.open(`/api/proxy?url=${encodeURIComponent(file['@microsoft.graph.downloadUrl'])}`)
}
btnColor="pink"
btnColor="teal"
btnText="Proxy download"
btnIcon="download"
/>