Skip to content

Commit

Permalink
Merge pull request #198 from brionmario/feat-random-color-avatars
Browse files Browse the repository at this point in the history
chore(react): expose `generatePastelColor` and hook
  • Loading branch information
brionmario authored Nov 27, 2023
2 parents e7ec4b5 + d27b47e commit 3abc9d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 @@ -19,7 +19,7 @@
import MuiAvatar, {AvatarProps as MuiAvatarProps} from '@mui/material/Avatar';
import clsx from 'clsx';
import {ElementType, FC, ReactElement, useMemo} from 'react';
import usePastelColorGenerator from 'src/hooks/use-pastel-color-generator';
import usePastelColorGenerator from '../../hooks/use-pastel-color-generator';
import {WithWrapperProps} from '../../models';
import {composeComponentDisplayName} from '../../utils';
import './avatar.scss';
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

export * from './components';
export * from './theme';
export * from './hooks/use-pastel-color-generator';
export {default} from './utils/generate-pastel-color';
export {
Alert,
AlertTitle,
Expand Down

0 comments on commit 3abc9d3

Please sign in to comment.