Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Dont render undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
tanettrimas committed Aug 8, 2023
1 parent 3b561ca commit 6167f24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type LinkProps = {
children: ReactNode
} & React.AnchorHTMLAttributes<HTMLAnchorElement>

export const Link = ({ type = 'normal', href, className, children, ...props }: LinkProps) => {
export const Link = ({ type = 'normal', href, className = '', children, ...props }: LinkProps) => {
className = className || ''
switch (type) {
case 'normal':
Expand Down
2 changes: 1 addition & 1 deletion components/section/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface SectionProps {
/**
* Section component
*/
export const Section = ({ type = 'normal', className, children }: SectionProps) => {
export const Section = ({ type = 'normal', className = '', children }: SectionProps) => {
switch (type) {
case '2-col':
return (
Expand Down
2 changes: 1 addition & 1 deletion components/title/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type TitleProps = {
/**
* Primary UI component for user interaction
*/
export const Title = ({ type = 'title', className, children, ...props }: TitleProps) => {
export const Title = ({ type = 'title', className = '', children, ...props }: TitleProps) => {
switch (type) {
case 'big-title':
return (
Expand Down

1 comment on commit 6167f24

@vercel
Copy link

@vercel vercel bot commented on 6167f24 Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.