fix(inputComponent): remove unnecessary console.log statement

fix(tagsSelectorComponent): reformat code for better readability
fix(styleUtils): remove unused import for GradientGroup from GradientSparkles icons
This commit is contained in:
anovazzi1 2023-11-30 15:15:44 -03:00
commit ed47a20c3d
3 changed files with 12 additions and 7 deletions

View file

@ -57,11 +57,9 @@ export default function InputComponent({
}}
onCopy={(e) => {
e.preventDefault();
console.log("Oi")
}}
onKeyDown={(e) => {
if (e.ctrlKey && e.key === 'c') {
console.log('Ctrl+C detected');
if (e.ctrlKey && e.key === "c") {
// Perform any actions you need when Ctrl+C is detected
}
handleKeyDown(e, value, "");

View file

@ -73,12 +73,19 @@ export function TagsSelector({
return (
<div ref={fadeContainerRef} className="fade-container">
<div ref={scrollContainerRef} className="scroll-container flex gap-2 min-w-min">
<div
ref={scrollContainerRef}
className="scroll-container flex min-w-min gap-2"
>
{!loadingTags &&
tags.map((tag, idx) => (
<button
disabled={disabled}
className={disabled ? "cursor-not-allowed" : " overflow-hidden whitespace-nowrap"}
className={
disabled
? "cursor-not-allowed"
: " overflow-hidden whitespace-nowrap"
}
onClick={() => {
updateTags(tag.name);
}}
@ -90,7 +97,7 @@ export function TagsSelector({
size="sq"
className={cn(
selectedTags.some((category) => category === tag.name)
? "bg-beta-foreground text-background hover:bg-beta-foreground min-w-min"
? "min-w-min bg-beta-foreground text-background hover:bg-beta-foreground"
: ""
)}
>

View file

@ -113,7 +113,7 @@ import { EvernoteIcon } from "../icons/Evernote";
import { FBIcon } from "../icons/FacebookMessenger";
import { GitBookIcon } from "../icons/GitBook";
import { GoogleIcon } from "../icons/Google";
import { GradientGroup, GradientInfinity, GradientSave } from "../icons/GradientSparkles";
import { GradientInfinity, GradientSave } from "../icons/GradientSparkles";
import { HuggingFaceIcon } from "../icons/HuggingFace";
import { IFixIcon } from "../icons/IFixIt";
import { MetaIcon } from "../icons/Meta";