Skip to content

Commit

Permalink
#1 Update new entry buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
markusbink committed Aug 12, 2022
1 parent 750a201 commit ab61c0d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/components/entry/NewEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const NewEntry: React.FC<NewEntryProps> = ({
"border-lightPetrol": isPlaintiff,
})}
>
<div className=" p-4 flex">
<div className="p-4 flex justify-end">
<Action
onClick={() => setIsExpanded(!isExpanded)}
isPlaintiff={!isPlaintiff}
Expand All @@ -62,26 +62,20 @@ export const NewEntry: React.FC<NewEntryProps> = ({
)}
placeholder="Text eingeben"
/>
<div className="flex justify-between">
<div className="flex justify-end gap-2 p-3 pt-2">
<Button
onClick={() => setIsNewEntryVisible(false)}
size="sm"
bgColor="transparent"
textColor={cx("font-bold", {
"text-darkPurple": isPlaintiff,
"text-darkPetrol": !isPlaintiff,
})}
bgColor="bg-lightRed"
textColor="font-bold text-darkRed"
>
Abbrechen
</Button>
<Button
onClick={() => setIsNewEntryVisible(false)}
size="sm"
bgColor="transparent"
textColor={cx("font-bold", {
"text-darkPurple": isPlaintiff,
"text-darkPetrol": !isPlaintiff,
})}
bgColor="bg-lightGreen"
textColor="font-bold text-darkGreen"
>
Speichern
</Button>
Expand Down

0 comments on commit ab61c0d

Please sign in to comment.