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:
parent
14cd1b30fd
commit
ed47a20c3d
3 changed files with 12 additions and 7 deletions
|
|
@ -57,11 +57,9 @@ export default function InputComponent({
|
||||||
}}
|
}}
|
||||||
onCopy={(e) => {
|
onCopy={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
console.log("Oi")
|
|
||||||
}}
|
}}
|
||||||
onKeyDown={(e) => {
|
onKeyDown={(e) => {
|
||||||
if (e.ctrlKey && e.key === 'c') {
|
if (e.ctrlKey && e.key === "c") {
|
||||||
console.log('Ctrl+C detected');
|
|
||||||
// Perform any actions you need when Ctrl+C is detected
|
// Perform any actions you need when Ctrl+C is detected
|
||||||
}
|
}
|
||||||
handleKeyDown(e, value, "");
|
handleKeyDown(e, value, "");
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,19 @@ export function TagsSelector({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={fadeContainerRef} className="fade-container">
|
<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 &&
|
{!loadingTags &&
|
||||||
tags.map((tag, idx) => (
|
tags.map((tag, idx) => (
|
||||||
<button
|
<button
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
className={disabled ? "cursor-not-allowed" : " overflow-hidden whitespace-nowrap"}
|
className={
|
||||||
|
disabled
|
||||||
|
? "cursor-not-allowed"
|
||||||
|
: " overflow-hidden whitespace-nowrap"
|
||||||
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
updateTags(tag.name);
|
updateTags(tag.name);
|
||||||
}}
|
}}
|
||||||
|
|
@ -90,7 +97,7 @@ export function TagsSelector({
|
||||||
size="sq"
|
size="sq"
|
||||||
className={cn(
|
className={cn(
|
||||||
selectedTags.some((category) => category === tag.name)
|
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"
|
||||||
: ""
|
: ""
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ import { EvernoteIcon } from "../icons/Evernote";
|
||||||
import { FBIcon } from "../icons/FacebookMessenger";
|
import { FBIcon } from "../icons/FacebookMessenger";
|
||||||
import { GitBookIcon } from "../icons/GitBook";
|
import { GitBookIcon } from "../icons/GitBook";
|
||||||
import { GoogleIcon } from "../icons/Google";
|
import { GoogleIcon } from "../icons/Google";
|
||||||
import { GradientGroup, GradientInfinity, GradientSave } from "../icons/GradientSparkles";
|
import { GradientInfinity, GradientSave } from "../icons/GradientSparkles";
|
||||||
import { HuggingFaceIcon } from "../icons/HuggingFace";
|
import { HuggingFaceIcon } from "../icons/HuggingFace";
|
||||||
import { IFixIcon } from "../icons/IFixIt";
|
import { IFixIcon } from "../icons/IFixIt";
|
||||||
import { MetaIcon } from "../icons/Meta";
|
import { MetaIcon } from "../icons/Meta";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue