Skip to content

Commit

Permalink
changing children to ReactNode instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosammito committed May 2, 2024
1 parent 31df1b5 commit c1c1b85
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./Text.style.scss"
import {mergeCode0Props} from "../../utils/utils";

export interface FontType extends Omit<Omit<Code0Component<HTMLSpanElement>, "children">, "size"> {
children: string,
children: React.ReactNode,
size: Code0Sizes,
hierarchy?: "primary" | "secondary" | "tertiary"
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Meta, StoryObj} from "@storybook/react";
import React, {useState} from "react";
import Card, {CardType} from "./Card";
import Badge from "../badge/Badge";
import Text from "../FontSizes/Text";
import Text from "../Text/Text";
import {Colors} from "../../utils/types";
import ButtonGroup from "../button-group/ButtonGroup";
import Button from "../button/Button";
Expand Down
2 changes: 1 addition & 1 deletion src/components/container/Container.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Meta} from "@storybook/react";
import Container from "./Container";
import Card from "../card/Card";
import Text from "../FontSizes/Text";
import Text from "../Text/Text";
import Badge from "../badge/Badge";
import ButtonGroup from "../button-group/ButtonGroup";
import Button from "../button/Button";
Expand Down
2 changes: 1 addition & 1 deletion src/components/quote/Quote.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import Card, {CardType} from "../card/Card";
import "./Quote.style.scss"
import Text from "../FontSizes/Text";
import Text from "../Text/Text";

export interface QuoteType extends Omit<CardType, "children"> {
children: string
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export { default as Card} from "./components/card/Card"
export { default as Col} from "./components/col/Col"
export { default as Container} from "./components/container/Container"
export { default as Dropdown} from "./components/dropdown/Dropdown"
export { default as Text} from "./components/FontSizes/Text"
export { default as Text} from "./components/Text/Text"
export { default as Input } from "./components/input/Input";
export { default as ListGroup} from "./components/list-group/ListGroup"
export { default as Menu} from "./components/menu/Menu"
Expand Down

0 comments on commit c1c1b85

Please sign in to comment.