Skip to content

Commit

Permalink
Update the type of children to React.ReactNode in GlassChip and…
Browse files Browse the repository at this point in the history
… `GlobalGlassChip` components

* **GlassChip.tsx**
  - Import `ReactNode` from `react`
  - Update the type of `children` to `React.ReactNode`

* **GlobalGlassChip.tsx**
  - Import `ReactNode` from `react`
  - Update the type of `children` to `React.ReactNode`
  • Loading branch information
SkywardSyntax committed Aug 22, 2024
1 parent ca99e4d commit a816724
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/GlassChip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { FC } from 'react';
import React, { FC, ReactNode } from 'react';
import styles from './GlassChip.module.css';

const GlassChip: FC = ({ children }) => {
const GlassChip: FC<{ children: ReactNode }> = ({ children }) => {
return <div className={styles.glassChip}>{children}</div>;
};

Expand Down
4 changes: 2 additions & 2 deletions components/GlobalGlassChip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { FC } from 'react';
import React, { FC, ReactNode } from 'react';
import styles from './GlobalGlassChip.module.css';

const GlobalGlassChip: FC = ({ children }) => {
const GlobalGlassChip: FC<{ children: ReactNode }> = ({ children }) => {
return <div className={styles.globalGlassChip}>{children}</div>;
};

Expand Down

0 comments on commit a816724

Please sign in to comment.