From d52a425f2d26b1da4405983d06dc29fc3f48011b Mon Sep 17 00:00:00 2001 From: Jordan Raffoul Date: Fri, 30 Aug 2019 15:33:39 -0400 Subject: [PATCH] refactor(core-heading): use safeRest from @tds/util-helpers --- packages/Heading/Heading.jsx | 3 +-- packages/Heading/HeadingSup/HeadingSup.jsx | 2 +- packages/Heading/package.json | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/Heading/Heading.jsx b/packages/Heading/Heading.jsx index 0314accb62..fefc2ca31c 100644 --- a/packages/Heading/Heading.jsx +++ b/packages/Heading/Heading.jsx @@ -11,8 +11,7 @@ import { } from '@tds/shared-typography' import { colorWhite, colorText, colorSecondary } from '@tds/core-colours' import { media } from '@tds/core-responsive' - -import safeRest from '../../shared/utils/safeRest' +import { safeRest } from '@tds/util-helpers' import HeadingSup, { StyledHeadingSup } from './HeadingSup/HeadingSup' diff --git a/packages/Heading/HeadingSup/HeadingSup.jsx b/packages/Heading/HeadingSup/HeadingSup.jsx index 86eb8d6986..2ebfce932b 100644 --- a/packages/Heading/HeadingSup/HeadingSup.jsx +++ b/packages/Heading/HeadingSup/HeadingSup.jsx @@ -4,9 +4,9 @@ import PropTypes from 'prop-types' import styled from 'styled-components' import { baseSupSubScripts } from '@tds/shared-typography' +import { safeRest } from '@tds/util-helpers' import { deprecate } from '../../../shared/utils/warn' -import safeRest from '../../../shared/utils/safeRest' export const StyledHeadingSup = styled.sup(baseSupSubScripts) diff --git a/packages/Heading/package.json b/packages/Heading/package.json index 3a6374d34f..80358d9619 100644 --- a/packages/Heading/package.json +++ b/packages/Heading/package.json @@ -29,6 +29,7 @@ "@tds/core-colours": "^2.1.0", "@tds/core-responsive": "^1.3.1", "@tds/shared-typography": "^1.3.3", + "@tds/util-helpers": "^1.1.0", "prop-types": "^15.5.10" } }