Skip to content

Commit

Permalink
Merge pull request #2282 from daostack/CW-2236-change-icons-mobile
Browse files Browse the repository at this point in the history
change "new stream" and "new dm" icons #2236
  • Loading branch information
pvm-code authored Nov 6, 2023
2 parents f2ae3c5 + a239168 commit 07c610b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { FC } from "react";
import { BoldPlusIcon } from "@/shared/icons";
import { PlusButton } from "@/pages/inbox/components/HeaderContent/components";
import { PlusIcon } from "@/shared/icons";
import { CirclesPermissions, CommonMember, Governance } from "@/shared/models";
import {
Button,
ButtonIcon,
ButtonSize,
ButtonVariant,
DesktopMenu,
Expand All @@ -28,7 +28,7 @@ const NewStreamButton: FC<NewStreamButtonProps> = (props) => {
} = props;
const items = useMenuItems({ commonMember, governance });
const buttonVariant = ButtonVariant.OutlineDarkPink;
const iconEl = <BoldPlusIcon className={styles.icon} />;
const iconEl = <PlusIcon className={styles.icon} />;

if (items.length === 0) {
return null;
Expand All @@ -55,7 +55,7 @@ const NewStreamButton: FC<NewStreamButtonProps> = (props) => {
return (
<MobileMenu
className={className}
triggerEl={<ButtonIcon variant={buttonVariant}>{iconEl}</ButtonIcon>}
triggerEl={<PlusButton />}
items={items}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useIsTabletView } from "@/shared/hooks/viewport";
import { InboxIcon } from "@/shared/icons";
import { getPluralEnding } from "@/shared/utils";
import { DirectMessageButton } from "../DirectMessageButton";
import { PlusButton } from "../HeaderContent/components";
import { InboxFilterButton } from "../InboxFilterButton";
import styles from "./HeaderContent_v04.module.scss";

Expand Down Expand Up @@ -32,6 +33,11 @@ const HeaderContent_v04: FC<HeaderContentProps> = (props) => {
</div>
<div className={styles.actionButtonsWrapper}>
<InboxFilterButton />
<DirectMessageButton
className={styles.directMessageButton}
isMobileVersion={isMobileVersion}
ButtonComponent={PlusButton}
/>
<DirectMessageButton
className={styles.directMessageButton}
isMobileVersion={isMobileVersion}
Expand Down

0 comments on commit 07c610b

Please sign in to comment.