Skip to content

Commit

Permalink
Merge pull request #6 from holaplex/anshul/small-patch
Browse files Browse the repository at this point in the history
some fixes and updates
  • Loading branch information
kespinola authored Jan 30, 2023
2 parents 88087d3 + a95200a commit 19ec915
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/@holaplexui-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@holaplex/ui-library-react",
"author": "Holaplex Inc.",
"version": "0.6.0",
"version": "0.6.1",
"description": "Holaplex react ui library components",
"private": false,
"files": [
Expand Down
14 changes: 8 additions & 6 deletions packages/@holaplexui-react/src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import clsx from 'clsx';
import { useMemo } from 'react';
import { ReactElement, useMemo } from 'react';
import { Spinner } from './Spinner';

export interface ButtonProps {
variant?: 'primary' | 'secondary' | 'success' | 'failure' | 'link';
variant?: 'primary' | 'secondary' | 'tertiary' | 'success' | 'failure' | 'link';
size?: 'small' | 'medium' | 'large';
border: 'circle' | 'rounded' | 'square';
border?: 'circle' | 'rounded' | 'square';
loading?: boolean;
block?: boolean;
icon?: React.ReactElement;
spinner?: React.ReactElement;
icon?: ReactElement;
spinner?: ReactElement;
onClick?: () => any;
disabled?: boolean;
circle?: boolean;
htmlType?: 'button' | 'submit' | 'reset' | undefined;
className?: string;
children?: string;
children?: ReactElement;
}

export const Button = ({
Expand Down Expand Up @@ -69,6 +69,8 @@ export const Button = ({
return 'button-variant-primary';
case 'secondary':
return 'button-variant-secondary';
case 'tertiary':
return 'button-variant-tertiary';
case 'link':
return 'button-variant-link';
case 'success':
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-react/src/components/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function PopoverBox({
>
<ul className="popover overflow-hidden">
{elements.map((element) => (
<li key={element.key} className="w-full">
<li key={element.key} className="cursor-pointer">
{element}
</li>
))}
Expand Down

0 comments on commit 19ec915

Please sign in to comment.