Skip to content

Commit

Permalink
🐢 update other components to use new props fmt for keyword+button
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanshoesmith committed Dec 10, 2024
1 parent 27d1c26 commit 908ef04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions frontend/src/EventDetails/EventDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classes from "./EventDetails.module.css";
import Button, { ButtonOptions } from "../Button/Button";
import Button from "../Button/Button";
import {
ArrowTopRightOnSquareIcon,
CalendarIcon,
Expand All @@ -8,8 +8,9 @@ import {
MapPinIcon,
UserIcon,
} from "@heroicons/react/24/outline";
import { Keyword, KeywordOptions } from "../Keyword/Keyword";
import Keyword from "../Keyword/Keyword";
import ShareButton from "../ShareButton/ShareButton";
import { ButtonIcons, ButtonVariants } from "../Button/ButtonTypes";

type EventDetailsProps = {
image: string;
Expand Down Expand Up @@ -73,7 +74,8 @@ function EventDetails(props: EventDetailsProps) {
<div className={classes.actions}>
<Button
type={"button"}
variant={ButtonOptions.Bookmark}
variant={ButtonVariants.Primary}
icon={ButtonIcons.Bookmark}
className={classes.actionIcon}
></Button>
<ShareButton className={classes.actionIcon}></ShareButton>
Expand All @@ -85,7 +87,7 @@ function EventDetails(props: EventDetailsProps) {
{props.keywords && (
<div className={classes.keywords}>
{props.keywords?.map((keyword) => (
<Keyword type={KeywordOptions.None}>{keyword}</Keyword>
<Keyword>{keyword}</Keyword>
))}
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Keyword/Keyword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type KeywordProps = {
type?: KeywordOptions;
};

export function Keyword(props: KeywordProps) {
export default function Keyword(props: KeywordProps) {
return (
<div
className={`${classes.keyword} ${
Expand Down

0 comments on commit 908ef04

Please sign in to comment.