Skip to content

Commit

Permalink
updating emotion implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
snmln committed Jan 13, 2025
1 parent 1142f7a commit 9752e5e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/scripts/components/common/cookie-consent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
/** @jsxImportSource @emotion/react */

import React, { useState, useEffect } from 'react';
import { debounce } from 'lodash';
import { Icon } from '@trussworks/react-uswds';
import { css } from '@emotion/react';
import { setCookie, getCookie } from './utils';
import {
USWDSAlert,
USWDSButton,
USWDSButtonGroup
} from '$uswds';
import { USWDSAlert, USWDSButton, USWDSButtonGroup } from '$uswds';

import './index.scss';
interface cookieConsentTheme {
Expand Down Expand Up @@ -164,7 +162,6 @@ export const CookieConsent = ({
>
<Icon.Close
size={3}
// @ts-expect-error css is not assignable to type 'IntrinsicAttributes & USWDSIconProps & SVGProps<SVGSVGElement>'.
css={css`
${transitionSettings}
${themeValueCheck(theme?.iconColor?.default) &&
Expand All @@ -178,7 +175,6 @@ export const CookieConsent = ({

{copy && (
<div
// @ts-expect-error css does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'
css={css`
${themeValueCheck(theme?.card?.textColor) &&
`color: ` + theme?.card?.textColor};
Expand Down

0 comments on commit 9752e5e

Please sign in to comment.