From fc3ddf01b1dbb604095579476d31b9612711ed1e Mon Sep 17 00:00:00 2001 From: jessopb <36554050+jessopb@users.noreply.github.com> Date: Fri, 21 Jan 2022 12:54:22 -0500 Subject: [PATCH] apply ody pr 463 - move MAIN_CLASS constant (#7430) --- ui/component/claimList/view.jsx | 2 +- ui/component/page/view.jsx | 2 +- ui/constants/classnames.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/component/claimList/view.jsx b/ui/component/claimList/view.jsx index 3531e4d59..aeac02b0a 100644 --- a/ui/component/claimList/view.jsx +++ b/ui/component/claimList/view.jsx @@ -1,5 +1,5 @@ // @flow -import { MAIN_CLASS } from 'component/page/view'; +import { MAIN_CLASS } from 'constants/classnames'; import type { Node } from 'react'; import React, { useEffect } from 'react'; import classnames from 'classnames'; diff --git a/ui/component/page/view.jsx b/ui/component/page/view.jsx index 1cb21c7ae..e70ad61be 100644 --- a/ui/component/page/view.jsx +++ b/ui/component/page/view.jsx @@ -13,7 +13,7 @@ import { useHistory } from 'react-router'; import { useIsMobile, useIsMediumScreen } from 'effects/use-screensize'; import { parseURI } from 'util/lbryURI'; -export const MAIN_CLASS = 'main'; +import { MAIN_CLASS } from 'constants/classnames'; type Props = { children: Node | Array, className: ?string, diff --git a/ui/constants/classnames.js b/ui/constants/classnames.js index f6411605b..26699d037 100644 --- a/ui/constants/classnames.js +++ b/ui/constants/classnames.js @@ -1 +1,2 @@ export const COMMENT_HIGHLIGHTED = 'comment--highlighted'; +export const MAIN_CLASS = 'main';