mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
React lint fixes
This commit is contained in:
@@ -4,5 +4,18 @@
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": ["../../.eslintrc.json", "plugin:import/electron"]
|
||||
"extends": [
|
||||
"../../.eslintrc.json",
|
||||
"plugin:import/electron",
|
||||
"plugin:react/recommended",
|
||||
"plugin:react/jsx-runtime"
|
||||
],
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "detect"
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"react/prop-types": "off"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ export const EmojiPickerSearch = ({ query }: EmojiPickerSearchProps) => {
|
||||
return (
|
||||
<div className="grid w-full min-w-full grid-cols-10 gap-1">
|
||||
<div className="col-span-full flex items-center py-1 pl-1 text-sm text-muted-foreground">
|
||||
<p>Search results for "{query}"</p>
|
||||
<p>Search results for "{query}"</p>
|
||||
</div>
|
||||
{filteredEmojis.map((emoji) => (
|
||||
<EmojiPickerItem key={emoji.id} emoji={emoji} />
|
||||
|
||||
@@ -17,7 +17,7 @@ export const IconPickerSearch = ({ query }: IconPickerSearchProps) => {
|
||||
return (
|
||||
<div className="grid w-full min-w-full grid-cols-10 gap-1">
|
||||
<div className="col-span-full flex items-center py-1 pl-1 text-sm text-muted-foreground">
|
||||
<p>Search results for "{query}"</p>
|
||||
<p>Search results for "{query}"</p>
|
||||
</div>
|
||||
{filteredIcons.map((icon) => (
|
||||
<IconPickerItem key={icon.id} icon={icon} />
|
||||
|
||||
@@ -174,7 +174,7 @@ export const MessageCreate = React.forwardRef<MessageCreateRefProps>(
|
||||
/>
|
||||
) : (
|
||||
<p className="m-0 px-0 py-1 text-muted-foreground">
|
||||
You don't have permission to create messages in this
|
||||
You don't have permission to create messages in this
|
||||
conversation
|
||||
</p>
|
||||
)}
|
||||
@@ -203,3 +203,5 @@ export const MessageCreate = React.forwardRef<MessageCreateRefProps>(
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
MessageCreate.displayName = 'MessageCreate';
|
||||
|
||||
@@ -142,3 +142,5 @@ export const MessageEditor = React.forwardRef<
|
||||
</React.Fragment>
|
||||
);
|
||||
});
|
||||
|
||||
MessageEditor.displayName = 'MessageEditor';
|
||||
|
||||
@@ -37,7 +37,7 @@ const CommandInput = React.forwardRef<
|
||||
React.ElementRef<typeof CommandPrimitive.Input>,
|
||||
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
|
||||
<div className="flex items-center border-b px-3">
|
||||
<MagnifyingGlassIcon className="mr-2 h-4 w-4 shrink-0 opacity-50" />
|
||||
<CommandPrimitive.Input
|
||||
ref={ref}
|
||||
|
||||
@@ -36,6 +36,7 @@ export const MarkRenderer = ({ node, children }: MarkRendererProps) => {
|
||||
href={mark.attrs.href}
|
||||
target="_blank"
|
||||
className={defaultClasses.link}
|
||||
rel="noreferrer"
|
||||
>
|
||||
{result}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user