Skip to content

Commit

Permalink
removed chromatic related code
Browse files Browse the repository at this point in the history
  • Loading branch information
devilkiller-ag committed Jun 15, 2024
1 parent 36766ed commit 4373a18
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
5 changes: 0 additions & 5 deletions chromatic.config.json

This file was deleted.

18 changes: 11 additions & 7 deletions components/typography/Paragraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@ import { twMerge } from 'tailwind-merge';
import { ParagraphTypeStyle } from '@/types/typography/Paragraph';

export interface ParagraphProps {
// eslint-disable-next-line prettier/prettier

/** Contains the type of paragraph style. ParagraphTypeStyle.lg is by default */
typeStyle?: ParagraphTypeStyle;

/** Contains text color for the paragraph. 'text-gray-700' is by default */
textColor?: string;

/** Contains class name for applying font weight in the paragraph */
fontWeight?: string;

/** Contains additional classes that should be added to the component */
className?: string;

/** Contains all the child elements bounded inside component */
children?: React.ReactNode;
}

/**
* Paragraph component is used to render a paragraph element with different type of styles.
*
* @param {ParagraphTypeStyle} props.typeStyle contains the type of paragraph style. ParagraphTypeStyle.lg is by default
*
* @param {string} props.textColor contains text color for the paragraph. 'text-gray-700' is by default
* @param {string} props.fontWeight contains class name for applying font weight in the paragraph
* @param {string} props.className contains additional classes that should be added to the component
* @param {React.ReactNode} props.children contains all the child elements bounded inside component
*/
export default function Paragraph({
typeStyle = ParagraphTypeStyle.lg,
Expand Down
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"generate:videos": "node scripts/build-newsroom-videos.js",
"generate:tools": "node scripts/build-tools.js",
"dev:storybook": "storybook dev -p 6006",
"chromatic": "chromatic --exit-zero-on-changes",
"build:storybook": "storybook build"
},
"repository": {
Expand Down Expand Up @@ -130,7 +129,6 @@
"@types/react-youtube-embed": "^1.0.4",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"chromatic": "^11.5.0",
"dedent": "^1.5.1",
"eslint": "^8",
"eslint-config-airbnb-typescript": "^17.1.0",
Expand Down

0 comments on commit 4373a18

Please sign in to comment.