Skip to content

Commit

Permalink
chore: replace Badge component with one from Altinn Components, clean…
Browse files Browse the repository at this point in the history
…up (#1569)
  • Loading branch information
mbacherycz authored Dec 13, 2024
1 parent 66a3536 commit 50050db
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 104 deletions.
16 changes: 0 additions & 16 deletions packages/frontend/src/components/Badge/Badge.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions packages/frontend/src/components/Badge/badge.module.css

This file was deleted.

1 change: 0 additions & 1 deletion packages/frontend/src/components/Badge/index.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/frontend/src/components/MenuBar/MenuItem.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Badge } from '@altinn/altinn-components/dist/components/Badge';
import { ChevronRightIcon, ExternalLinkIcon } from '@navikt/aksel-icons';
import cx from 'classnames';
import classNames from 'classnames';
import type { HTMLProps } from 'react';
import { Link, useLocation } from 'react-router-dom';
import { Badge } from '../Badge';
import styles from './menuItem.module.css';

interface MenuItem {
Expand Down Expand Up @@ -124,7 +124,7 @@ const MenuItemContent = ({
<ExternalLinkIcon className={styles.arrowIcon} />
) : count ? (
<div className={styles.badgeWrapper}>
<Badge label={count} variant={isInbox ? 'strong' : 'neutral'} />
<Badge label={count} color={isInbox ? 'alert' : 'subtle'} />
</div>
) : (
count !== 0 && <ChevronRightIcon className={styles.arrowIcon} />
Expand Down
1 change: 0 additions & 1 deletion packages/frontend/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ export * from './PageLayout';
export * from './DropdownMenu';
export * from './Snackbar';
export * from './HorizontalLine';
export * from './Badge';
export * from './MetaDataFields';
export * from './PartyDropdown';
48 changes: 0 additions & 48 deletions packages/storybook/src/stories/Badge/badge.stories.tsx

This file was deleted.

0 comments on commit 50050db

Please sign in to comment.