From 7a23becdec57715fdbd64f01409e1247488c17a8 Mon Sep 17 00:00:00 2001 From: Aminejv Date: Wed, 18 Aug 2021 08:27:53 +0100 Subject: [PATCH] feat(SceneSlate): use new private indicator --- common/svg.js | 19 ------------- .../core/CollectionPreviewBlock/index.js | 7 ++--- scenes/SceneSlate.js | 27 ++++++++++--------- 3 files changed, 18 insertions(+), 35 deletions(-) diff --git a/common/svg.js b/common/svg.js index 6e1d7802..0985f628 100644 --- a/common/svg.js +++ b/common/svg.js @@ -1988,25 +1988,6 @@ export const Box = (props) => ( ); -export const Lock = (props) => ( - - - - -); - export const Share = (props) => ( css` color: ${theme.semantic.textGray}; `; -const LOCK_WRAPPER = (theme) => css` +const STYLES_SECURITY_LOCK_WRAPPER = (theme) => css` background-color: ${theme.semantic.bgDark}; border-radius: 4px; padding: 4px; + color: ${theme.semantic.textGrayLight}; `; export default function CollectionPreview({ collection, viewer, owner, onAction }) { @@ -177,8 +178,8 @@ export default function CollectionPreview({ collection, viewer, owner, onAction {title} {!isPublic && ( -
- +
+
)}
diff --git a/scenes/SceneSlate.js b/scenes/SceneSlate.js index 1f4325ee..55d35c20 100644 --- a/scenes/SceneSlate.js +++ b/scenes/SceneSlate.js @@ -8,6 +8,7 @@ import * as Strings from "~/common/strings"; import * as Utilities from "~/common/utilities"; import * as UserBehaviors from "~/common/user-behaviors"; import * as Events from "~/common/custom-events"; +import * as Styles from "~/common/styles"; import { Link } from "~/components/core/Link"; import { LoaderSpinner } from "~/components/system/components/Loaders"; @@ -58,6 +59,13 @@ const STYLES_MOBILE_ONLY = css` } `; +const STYLES_SECURITY_LOCK_WRAPPER = (theme) => css` + background-color: ${theme.semantic.bgDark}; + border-radius: 4px; + padding: 8px; + color: ${theme.semantic.textGrayLight}; +`; + export default class SceneSlate extends React.Component { state = { loading: true, @@ -450,23 +458,16 @@ class SlatePage extends React.Component { {" "} / {data.name} - {isOwner && !isPublic && ( - - )} ) : ( - - {data.name} +
+ {data.name} {isOwner && !isPublic && ( - +
+ +
)} - +
) } actions={{actions}}