Skip to content

Commit

Permalink
Fix invalid import for classnames.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrezz-b committed Feb 18, 2024
1 parent 6cdebfb commit 6171916
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
49 changes: 25 additions & 24 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/src/components/forms/TagInput.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useField } from "formik";
import { useState } from "react";
import CloseIcon from "@mui/icons-material/Close";
import * as cx from "classnames";
import cx from "classnames";
interface TagInputProps {
name: string;
className?: string;
Expand Down Expand Up @@ -82,7 +82,7 @@ interface TagProps {
onRemove: (index: number) => void;
}

const Tag = ({ value, index, onRemove, disabled }: TagProps) => {
const Tag = ({ value, index, onRemove, disabled = false }: TagProps) => {
return (
<div className="text-md inline-flex items-center gap-2 py-0.5 pl-2 pr-0.5 rounded-2xl border border-red-500">
<span className={cx({ "opacity-65": disabled })}>{value}</span>
Expand Down

0 comments on commit 6171916

Please sign in to comment.