diff --git a/package-lock.json b/package-lock.json index 3146b643..e4d4256c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5399,6 +5399,11 @@ "mimic-response": "^1.0.0" } }, + "clsx": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", + "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==" + }, "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", diff --git a/package.json b/package.json index e9640dbb..2ad1c289 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@types/react-dom": "16.9.8", "@types/socket.io-client": "1.4.34", "browser-nativefs": "0.11.0", + "clsx": "1.1.1", "firebase": "7.23.0", "i18next-browser-languagedetector": "6.0.1", "lodash.throttle": "4.1.1", diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx index c2970f50..1bd50ca5 100644 --- a/src/components/Avatar.tsx +++ b/src/components/Avatar.tsx @@ -9,7 +9,7 @@ type AvatarProps = { }; export const Avatar = ({ children, color, onClick }: AvatarProps) => ( -
+
{children}
); diff --git a/src/components/ButtonSelect.tsx b/src/components/ButtonSelect.tsx index 19730069..0d58d2fe 100644 --- a/src/components/ButtonSelect.tsx +++ b/src/components/ButtonSelect.tsx @@ -1,4 +1,5 @@ import React from "react"; +import clsx from "clsx"; export const ButtonSelect = ({ options, @@ -15,7 +16,7 @@ export const ButtonSelect = ({ {options.map((option) => (