Skip to content

Commit

Permalink
Export BrandIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Neuteboom committed Jan 7, 2025
1 parent 7c62bc2 commit 7ae7c05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/components/BrandIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ type Props = {
size?: number
}

const BrandIcon = ({ name, color, size }: Props) => {
export const BrandIcon = ({ name, color, size }: Props) => {
const icon = BrandIcons[name]
const iconColor = color ?? theme.color.primary
const iconSize = size ?? theme.icon.size.large

return <FontAwesomeIcon icon={icon} color={iconColor} size={iconSize} />
}

export default BrandIcon
2 changes: 1 addition & 1 deletion src/components/__tests__/BrandIcon.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import { render } from '@testing-library/react-native'

import { theme } from '../../styles'
import BrandIcon from '../BrandIcon'
import { BrandIcon } from '../BrandIcon'

describe('BrandIcon', () => {
describe('Rendering', () => {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ export {
export type { IconName, LargeButtonProps, NotificationPopupStaticProps, TooltipProps }

export * from './components/Icon'
export * from './components/BrandIcon'
export * from './styles'

0 comments on commit 7ae7c05

Please sign in to comment.