feat: classnames

This commit is contained in:
2023-10-16 15:48:56 +01:00
parent 7129ffa1c7
commit 2ce5bd153b
22 changed files with 91 additions and 80 deletions

View File

@ -8,6 +8,7 @@ import useLogin from "Hooks/useLogin";
import Icon from "Icons/Icon";
import { useNoteCreator } from "State/NoteCreator";
import { NoteCreator } from "./NoteCreator";
import classNames from "classnames";
export const NoteCreatorButton = ({ className }: { className?: string }) => {
const buttonRef = useRef<HTMLButtonElement>(null);
@ -36,7 +37,7 @@ export const NoteCreatorButton = ({ className }: { className?: string }) => {
<>
<button
ref={buttonRef}
className={`primary circle${className ? ` ${className}` : ""}`}
className={classNames("primary circle", className)}
onClick={() =>
update(v => {
v.replyTo = undefined;