Skip to content

Commit

Permalink
#1 Add icons to edit buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
markusbink committed Aug 12, 2022
1 parent a256b3d commit c5d70cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/entry/NewEntry.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cx from "classnames";
import { CornersIn, CornersOut } from "phosphor-react";
import { CornersIn, CornersOut, FloppyDisk, X } from "phosphor-react";
import React, { useEffect, useState } from "react";
import { UserRole } from "../../types";
import { Button } from "../Button";
Expand Down Expand Up @@ -64,6 +64,7 @@ export const NewEntry: React.FC<NewEntryProps> = ({
/>
<div className="flex justify-end gap-2 p-3 pt-2">
<Button
icon={<X size={20} />}
onClick={() => setIsNewEntryVisible(false)}
size="sm"
bgColor="bg-lightRed"
Expand All @@ -72,6 +73,7 @@ export const NewEntry: React.FC<NewEntryProps> = ({
Abbrechen
</Button>
<Button
icon={<FloppyDisk size={20} />}
onClick={() => setIsNewEntryVisible(false)}
size="sm"
bgColor="bg-lightGreen"
Expand Down

0 comments on commit c5d70cb

Please sign in to comment.