@apolitical/component-library 8.4.1 → 8.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.4.1",
3
+ "version": "8.4.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- interface Props {
1
+ import { FC } from 'react';
2
+ interface BadgeProps {
3
3
  /** The slug of the badge */
4
4
  slug: string;
5
5
  }
6
- declare const Badge: React.FC<Props>;
6
+ declare const Badge: FC<BadgeProps>;
7
7
  export default Badge;
@@ -1,12 +1,11 @@
1
- import React from 'react';
1
+ import { FC } from 'react';
2
2
  import { IBadgesOption } from './badges.interface';
3
3
  import { IBadgesObject } from '../badge/interface/badge.interfaces';
4
- interface Props {
5
- element?: 'span' | 'div';
4
+ interface BadgesProps {
6
5
  /** The user badges */
7
6
  userBadges: IBadgesObject;
8
7
  /** The badge options */
9
8
  badgeOptions: IBadgesOption;
10
9
  }
11
- declare const Badges: React.FC<Props>;
10
+ declare const Badges: FC<BadgesProps>;
12
11
  export default Badges;