From 90442cfd9a480a506194ac4e1e53a279ca6c77e2 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 25 Aug 2023 15:46:44 -0700 Subject: [PATCH] Add icons to notices --- .../party/PartyHeader/index.module.scss | 19 ++++++++++++++++++- components/party/PartyHeader/index.tsx | 12 ++++++++++-- public/icons/Private.svg | 3 +++ public/icons/Public.svg | 4 ++++ public/icons/Unlisted.svg | 3 +++ 5 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 public/icons/Private.svg create mode 100644 public/icons/Public.svg create mode 100644 public/icons/Unlisted.svg diff --git a/components/party/PartyHeader/index.module.scss b/components/party/PartyHeader/index.module.scss index dd343bcf..9874d093 100644 --- a/components/party/PartyHeader/index.module.scss +++ b/components/party/PartyHeader/index.module.scss @@ -25,7 +25,6 @@ display: flex; gap: $unit-2x; font-size: $font-regular; - justify-content: space-between; padding: $unit-4x; overflow: hidden; @@ -37,6 +36,24 @@ p { color: var(--notice-text); + flex-grow: 1; + } + + .icon { + align-items: center; + background-color: var(--notice-button-bg); + border-radius: $full-corner; + display: flex; + justify-content: center; + height: $unit-6x; + width: $unit-6x; + flex-shrink: 0; + + svg { + fill: var(--notice-text); + width: $unit-3x; + height: $unit-3x; + } } .buttons { diff --git a/components/party/PartyHeader/index.tsx b/components/party/PartyHeader/index.tsx index a78cb9b7..f113ed64 100644 --- a/components/party/PartyHeader/index.tsx +++ b/components/party/PartyHeader/index.tsx @@ -19,16 +19,18 @@ import { formatTimeAgo } from '~utils/timeAgo' import RemixTeamAlert from '~components/dialogs/RemixTeamAlert' import RemixedToast from '~components/toasts/RemixedToast' +import PartyVisibilityDialog from '~components/party/PartyVisibilityDialog' +import UrlCopiedToast from '~components/toasts/UrlCopiedToast' import EditIcon from '~public/icons/Edit.svg' import RemixIcon from '~public/icons/Remix.svg' import SaveIcon from '~public/icons/Save.svg' +import PrivateIcon from '~public/icons/Private.svg' +import UnlistedIcon from '~public/icons/Unlisted.svg' import type { DetailsObject } from 'types' import styles from './index.module.scss' -import PartyVisibilityDialog from '../PartyVisibilityDialog' -import UrlCopiedToast from '~components/toasts/UrlCopiedToast' // Props interface Props { @@ -331,6 +333,9 @@ const PartyHeader = (props: Props) => { // Render: Notice const unlistedNotice = (
+
+ +

{t('party.notices.unlisted')}