Skip to content

Commit

Permalink
feat(DropdownMenu): added dropdown menu component, created bento menu…
Browse files Browse the repository at this point in the history
… and update user-profile (#299)
  • Loading branch information
JsGarneau authored Oct 5, 2021
1 parent f686a21 commit 5dfc261
Show file tree
Hide file tree
Showing 39 changed files with 3,482 additions and 541 deletions.
2 changes: 1 addition & 1 deletion packages/kronos-crm-icons/src/eye-slave.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/kronos-crm-icons/src/recur-slave.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/kronos-crm-icons/src/sort-alpha-desc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/kronos-fna-icons/src/print.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/kronos-fna-icons/src/synchro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/react/src/components/avatar/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Icon } from '../icon/icon';

export type AvatarSize = 'xsmall' | 'small' | 'medium' | 'large'

interface AvatarProps {
export interface AvatarProps {
className?: string;
username?: string;
bgColor?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React from 'react';
import { renderWithProviders } from '../../test-utils/renderer';
import { BentoMenuButton } from './bento-menu-button';
import { ExternalItemProps, NavItemProps } from '../dropdown-menu/list-items';

jest.mock('../../utils/uuid');

const products: NavItemProps[] = [
{
label: 'Option A',
value: 'optionA',
href: '/testa',
},
{
label: 'Option B',
value: 'optionB',
href: '/testb',
},
{
label: 'Option C',
value: 'optionC',
href: '/testc',
},
{
label: 'Option D',
value: 'optionD',
href: '/testd',
},
];

const externals: ExternalItemProps[] = [
{
label: 'Option A',
href: '/testa',
},
];

describe('BentoMenuButton', () => {
test('Matches Snapshot', () => {
const tree = renderWithProviders(
<BentoMenuButton productLinks={products} externalLinks={externals} />,
);

expect(tree).toMatchSnapshot();
});
});
Loading

0 comments on commit 5dfc261

Please sign in to comment.