Skip to content

Commit

Permalink
Merge pull request #14 from BuidlerDAO/comp/event
Browse files Browse the repository at this point in the history
Comp/event
  • Loading branch information
zhbyak authored Jan 10, 2025
2 parents c387b63 + 28a8995 commit 7b1bd2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "n6-ui",
"version": "1.2.1",
"version": "1.2.2",
"description": "N6 Network UI Framework",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/NChip/NChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import classNames from 'classnames';

interface NChipProps {
trim?: boolean;
searchTerm: string;
onDelete: () => void;
onClick: () => void;
Expand All @@ -12,6 +13,7 @@ interface NChipProps {
}

const NChip: React.FC<NChipProps> = ({
trim = true,
searchTerm,
onDelete,
onClick,
Expand All @@ -23,7 +25,7 @@ const NChip: React.FC<NChipProps> = ({
return (
<div className={classNames('flex items-center gap-1.5 rounded-lg bg-gray-1 px-3 py-2', chipClassName)}>
<button className={classNames('text-sm', btnClassName)} onClick={onClick}>
{searchTerm.length > 7 ? searchTerm.substring(0, 7) + '...' : searchTerm}
{trim ? (searchTerm.length > 7 ? searchTerm.substring(0, 7) + '...' : searchTerm) : searchTerm}
</button>
<button
className={classNames('text-white hover:text-red-500 text-sm font-semibold', closeClassName)}
Expand Down

0 comments on commit 7b1bd2b

Please sign in to comment.