Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
caroluchoa authored Mar 27, 2024
1 parent 98abe86 commit 815c0f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sections/Theme/Theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ const ButtonSizesPreview = () => {

const buttonStyles = ['', 'primary', 'secondary', 'tertiary', 'accent'];

const renderButtonRow = (style) => (
const renderButtonRow = (style: string) => (
<div className="flex flex-row gap-2 items-center">
{Object.entries(buttonSizes).map(([sizeCode, sizeText]) => (
<button className={`btn capitalize btn-${sizeCode} ${style ? `btn-${style}` : ''}`}>
Expand All @@ -418,7 +418,7 @@ const ButtonColorsPreview = () => {
const buttonTypesClasses = ['btn', 'btn-outline', 'btn-ghost', 'btn-link'];
const buttonColorsClasses = ['', 'btn-primary', 'btn-secondary', 'btn-tertiary', 'btn-accent'];

const renderButtonRow = (type) => (
const renderButtonRow = (type: string) => (
<div className="flex flex-row gap-2">
{buttonColorsClasses.map(color => (
<button className={`btn btn-xs md:btn-sm capitalize ${color} ${type}`}>
Expand Down

0 comments on commit 815c0f9

Please sign in to comment.