packages/components/psammead-navigation/src/index.stories.jsx
File index.stories.jsx
has 474 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { storiesOf } from '@storybook/react';
import styled from '@emotion/styled';
import {
color,
Function animationStory
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const animationStory = (
dir,
script,
service,
brandBackgroundColour,
Function inputs
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const inputs = () => {
// capitalization is only for presentation purpose on the knob
const options = Object.keys(svgs)
.filter(key => key !== 'BBC_BLOCKS')
.map(key => key.charAt(0).toUpperCase() + key.slice(1));
Function getBrand
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getBrand = () => {
const {
productInput,
serviceLocalisedNameInput,
svgHeightInput,