Skip to content

Commit

Permalink
svg classNames
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymears committed Feb 5, 2021
1 parent 979648a commit f38329c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/partials/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const Header: FunctionComponent<{
<span className="inline-flex flex-row mb-4 text-2xl tracking-wider text-white md:text-3xl">
{siteTitle ?? 'Not In Our Honor Coalition'}
<a href="https://notinourhonor.com">
<External className="mt-1" w={7} h={7} color="text-white" />
<External className="text-white md:mt-1 w-7 h-7" />
</a>
</span>

Expand Down
8 changes: 2 additions & 6 deletions src/components/svg/External.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ import {FunctionComponent} from 'react'

export const External: FunctionComponent<{
color?: string,
w?: number,
h?: number,
className?: string,
}> = ({color, w, h, className}) => (
}> = ({className}) => (
<svg
className={`${w ? `w-${w}` : `w-5`} ${h ? `h-${h}` : `h-5`} ml-3 -mr-1 ${
className ?? ``
} ${color ?? `text-gray-400`}`}
className={`ml-3 -mr-1 ${className ?? `w-5 h-5 text-gray-400`}`}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor">
Expand Down

0 comments on commit f38329c

Please sign in to comment.