Skip to content

Commit

Permalink
chat button transparent on click
Browse files Browse the repository at this point in the history
  • Loading branch information
nikk15 committed Jul 19, 2023
1 parent 374d2a6 commit d1edbad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ const chatTooltipDescription = defineMessage({

type ChatToolbarButtonProps = {
onClick: () => void;
selected: boolean
};

const ChatToolbarButton = ({ onClick }: ChatToolbarButtonProps) => {
const ChatToolbarButton = ({ onClick, selected }: ChatToolbarButtonProps) => {
const { unreadMessages } = useContext(ChatContext);
const intl = useIntl();
const description = intl.formatMessage(chatTooltipDescription);
Expand All @@ -31,6 +32,7 @@ const ChatToolbarButton = ({ onClick }: ChatToolbarButtonProps) => {
icon={<ChatIcon />}
preset="accent4"
label={<FormattedMessage id="chat-toolbar-button" defaultMessage="Chat" />}
selected={selected}
/>
</ToolTip>
);
Expand Down
1 change: 1 addition & 0 deletions src/react-components/ui-root.js
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,7 @@ class UIRoot extends Component {
{!isLockedDownDemo && (
<ChatToolbarButton
onClick={() => this.toggleSidebar("chat", { chatPrefix: "", chatAutofocus: false })}
selected={this.state.sidebarId === "chat"}
/>
)}
{entered && isMobileVR && (
Expand Down

0 comments on commit d1edbad

Please sign in to comment.