Skip to content

Commit

Permalink
removes need for camelCase package
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarpenter committed Nov 16, 2021
1 parent fa10228 commit 05138f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions website/components/io-home-card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react'
import Link from 'next/link'
import InlineSvg from '@hashicorp/react-inline-svg'
import camelCase from 'camelcase'
import classNames from 'classnames'
import { IconArrowRight16 } from '@hashicorp/flight-icons/svg-react/arrow-right-16'
import { IconExternalLink16 } from '@hashicorp/flight-icons/svg-react/external-link-16'
Expand Down Expand Up @@ -32,8 +31,6 @@ function IoHomeCard({
description,
children,
}: IoHomeCardProps) {
const space = camelCase(['space', inset])

const LinkWrapper = ({ className, children }) =>
link.type === 'inbound' ? (
<Link href={link.url}>
Expand All @@ -52,7 +49,7 @@ function IoHomeCard({

return (
<article className={classNames(s.card)}>
<LinkWrapper className={classNames(s[variant], s[space])}>
<LinkWrapper className={classNames(s[variant], s[inset])}>
{children ? (
children
) : (
Expand Down
6 changes: 3 additions & 3 deletions website/components/io-home-card/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
}

/* Spacing */
&.spaceNone {
&.none {
padding: 0;
}

&.spaceSm {
&.sm {
padding: var(--token-spacing-05);
}

&.spaceMd {
&.md {
padding: var(--token-spacing-06);
}
}
Expand Down
1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@hashicorp/react-text-splits": "^3.2.7",
"@hashicorp/react-use-cases": "^5.0.0",
"@hashicorp/react-vertical-text-block-list": "^7.0.0",
"camelcase": "^6.2.1",
"next": "^11.1.2",
"next-mdx-remote": "3.0.6",
"next-remote-watch": "1.0.0",
Expand Down

0 comments on commit 05138f3

Please sign in to comment.