add save and cancel icon
This commit is contained in:
parent
6aaae53da7
commit
d98ade3e26
4
public/save-disk-black.svg
Normal file
4
public/save-disk-black.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 16 16" id="save-16px" xmlns="http://www.w3.org/2000/svg">
|
||||
<path id="Path_42" data-name="Path 42" d="M-5.732,2.97-7.97.732a2.474,2.474,0,0,0-1.483-.7A.491.491,0,0,0-9.591,0H-18.5A2.5,2.5,0,0,0-21,2.5v11A2.5,2.5,0,0,0-18.5,16h11A2.5,2.5,0,0,0-5,13.5V4.737A2.483,2.483,0,0,0-5.732,2.97ZM-13,1V5.455h-3.591V1Zm-4.272,14V10.545h8.544V15ZM-6,13.5A1.5,1.5,0,0,1-7.5,15h-.228V10.045a.5.5,0,0,0-.5-.5h-9.544a.5.5,0,0,0-.5.5V15H-18.5A1.5,1.5,0,0,1-20,13.5V2.5A1.5,1.5,0,0,1-18.5,1h.909V5.955a.5.5,0,0,0,.5.5h7.5a.5.5,0,0,0,.5-.5v-4.8a1.492,1.492,0,0,1,.414.285l2.238,2.238A1.511,1.511,0,0,1-6,4.737Z" transform="translate(21)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 810 B |
4
public/save-disk-white.svg
Normal file
4
public/save-disk-white.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg fill="#ffffff" width="800px" height="800px" viewBox="0 0 16 16" id="save-16px" xmlns="http://www.w3.org/2000/svg">
|
||||
<path id="Path_42" data-name="Path 42" d="M-5.732,2.97-7.97.732a2.474,2.474,0,0,0-1.483-.7A.491.491,0,0,0-9.591,0H-18.5A2.5,2.5,0,0,0-21,2.5v11A2.5,2.5,0,0,0-18.5,16h11A2.5,2.5,0,0,0-5,13.5V4.737A2.483,2.483,0,0,0-5.732,2.97ZM-13,1V5.455h-3.591V1Zm-4.272,14V10.545h8.544V15ZM-6,13.5A1.5,1.5,0,0,1-7.5,15h-.228V10.045a.5.5,0,0,0-.5-.5h-9.544a.5.5,0,0,0-.5.5V15H-18.5A1.5,1.5,0,0,1-20,13.5V2.5A1.5,1.5,0,0,1-18.5,1h.909V5.955a.5.5,0,0,0,.5.5h7.5a.5.5,0,0,0,.5-.5v-4.8a1.492,1.492,0,0,1,.414.285l2.238,2.238A1.511,1.511,0,0,1-6,4.737Z" transform="translate(21)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 811 B |
@ -12,6 +12,7 @@ import { AdminBarLayout } from "~/components/admin/ControlBar";
|
||||
import { AdminActionLink } from "~/components/admin/common";
|
||||
import { appRouter } from "~/server/api/root";
|
||||
import { prisma } from "~/server/db";
|
||||
import Image from "next/image";
|
||||
|
||||
export const getServerSideProps: GetServerSideProps<{
|
||||
resource: AuditoryResource;
|
||||
@ -47,7 +48,24 @@ const EditResourcePage = (
|
||||
actions={[
|
||||
<AdminActionLink
|
||||
key="save"
|
||||
symbol={<XCircleIcon className="w-4" />}
|
||||
symbol={
|
||||
<span className="flex">
|
||||
<Image
|
||||
className="inline-block group-hover:hidden"
|
||||
alt="save"
|
||||
src="/save-disk-white.svg"
|
||||
width={14}
|
||||
height={14}
|
||||
/>
|
||||
<Image
|
||||
className="hidden group-hover:inline-block"
|
||||
alt="save"
|
||||
src="/save-disk-black.svg"
|
||||
width={14}
|
||||
height={14}
|
||||
/>
|
||||
</span>
|
||||
}
|
||||
label="Save"
|
||||
href={`/resources/${resource.id}`}
|
||||
/>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user