Skip to content

Commit

Permalink
feat(ProductSwitcher): adding platform, accounts and text logo
Browse files Browse the repository at this point in the history
  • Loading branch information
VadymBezpalko committed Jul 30, 2024
1 parent 5d943f5 commit 700a5ac
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 7 deletions.
4 changes: 4 additions & 0 deletions packages/icons/svg/text_accounts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/icons/svg/text_logo-full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/icons/svg/text_platform.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {
"dev": "run-p dev:*",
"dev:storybook": "storybook dev -p 6006",
"dev:storybook": "storybook dev -p 6006 --exact-port",
"dev:lib": "vite build --mode development -w",
"prebuild": "rimraf dist && mkdir dist",
"build": "tsc && vite build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,4 +500,7 @@ export const IconsData: Record<IconName, IconGroup> = {
Stripe: IconGroup.Brands,
Mailchimp: IconGroup.Brands,
LayoutSidebarLeft: IconGroup.General,
TextAccounts: IconGroup.Brands,
TextLogoFull: IconGroup.Brands,
TextPlatform: IconGroup.Brands,
};
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ $base-class: 'product-switcher';
gap: 4px;
align-items: center;
justify-content: center;
height: 19px;
text-decoration: none;
color: var(--content-basic-secondary);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { FC, MouseEvent } from 'react';
import * as React from 'react';

import { TextLogoFull } from '@livechat/design-system-icons';

import { Icon } from '../Icon';
import { Popover } from '../Popover';
import { Tooltip } from '../Tooltip';
import { Text } from '../Typography';
Expand Down Expand Up @@ -78,9 +81,11 @@ export const ProductSwitcher: FC<IProductSwitcherProps> = ({
className={styles[`${baseClass}__footer-link`]}
>
<Text noMargin>powered by</Text>
<Text noMargin bold customColor="var(--content-locked-white)">
text|
</Text>
<Icon
size="xlarge"
source={TextLogoFull}
customColor="var(--content-locked-white)"
/>
</a>
</div>
</>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import {
AccountCircle,
ChatBotMono,
HelloMono,
HelpDeskMono,
KnowledgeBaseMono,
LiveChatMono,
OpenWidgetMono,
TextAccounts,
TextPlatform,
} from '@livechat/design-system-icons';

import { OpenWidgetLogoUri } from './openwidgetLogoUri';
Expand Down Expand Up @@ -83,7 +84,7 @@ export const ProductSwitcherProducts: IProductOption[] = [
{
id: 'platform',
name: 'Platform',
icon: HelloMono,
icon: TextPlatform,
iconColor: 'var(--content-locked-black)',
backgroundColors: {
main: 'var(--products-platform)',
Expand All @@ -95,7 +96,7 @@ export const ProductSwitcherProducts: IProductOption[] = [
{
id: 'accounts',
name: 'Accounts',
icon: AccountCircle, // TODO - replace with proper icon
icon: TextAccounts,
backgroundColors: {
main: 'var(--surface-locked-white)',
second: 'var(--products-livechat)',
Expand Down

0 comments on commit 700a5ac

Please sign in to comment.