Skip to content

Commit

Permalink
Adhere newly scaffolded component to code formatting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Mar 7, 2024
1 parent 01da6ca commit fa592d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plop-templates/react.tsx.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import type { ForwardedRef, HTMLAttributes, PropsWithChildren } from 'react'

export type {{pascalCase name}}Props = PropsWithChildren<HTMLAttributes<HTMLElement>>

export const {{pascalCase name}} = forwardRef(
({ children, className, ...restProps }: {{pascalCase name}}Props, ref: ForwardedRef<HTMLElement>) => (
export const {{pascalCase name}} = forwardRef( ({ children, className, ...restProps }: {{pascalCase name}}Props, ref: ForwardedRef<HTMLElement>) => (
<span {...restProps} ref={ref} className={clsx('amsterdam-{{kebabCase name}}', className)}>
{children}
</span>
Expand Down

0 comments on commit fa592d8

Please sign in to comment.