Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Breadcrumbs, BreadcrumbsProps } from '@harnessio/uicore';
import React from 'react';
import { useAppStore } from '@context';
import litmusLogo from '@images/litmus-icon-color.svg';

interface LitmusBreadCrumbsProps extends BreadcrumbsProps {
baseUrl?: string;
Expand All @@ -13,7 +14,7 @@ export default function LitmusBreadCrumbs({ baseUrl, ...rest }: LitmusBreadCrumb
{
label: projectName || 'My Project',
url: '/',
iconProps: { name: 'chaos-litmuschaos' as any } // cast to 'any' to avoid TS type issue
icon: <img src={litmusLogo} alt="Litmus" style={{ width: '16px', height: '16px', marginRight: '8px' }} />
},
...(rest.links || [])
];
Expand Down
4 changes: 2 additions & 2 deletions chaoscenter/web/src/components/MainNav/MainNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React from 'react';
import cx from 'classnames';
import { NavLink as Link } from 'react-router-dom';
import { Text, Layout, Avatar } from '@harnessio/uicore';
import { Icon } from '@harnessio/icons';
import { Color, FontVariation } from '@harnessio/design-system';
import { useStrings } from '@strings';
import { useAppStore } from '@context';
import { useRouteWithBaseUrl } from '@hooks';
import litmusLogo from '@images/litmus-icon-color.svg';
import css from './MainNav.module.scss';

export const LitmusNavItem = (): React.ReactElement => {
Expand All @@ -22,7 +22,7 @@ export const LitmusNavItem = (): React.ReactElement => {
to={projectScopedPaths.toDashboard}
>
<Layout.Vertical flex={{ align: 'center-center' }} spacing="small" padding="medium">
<Icon name="chaos-litmuschaos" size={30} />
<img src={litmusLogo} alt="Litmus" style={{ width: '30px', height: '30px' }} />
<Text
font={{ weight: 'semi-bold', align: 'center' }}
padding={{ bottom: 'xsmall' }}
Expand Down
3 changes: 2 additions & 1 deletion chaoscenter/web/src/components/SideNav/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import ProjectSelectorController from '@controllers/ProjectSelector';
import NavExpandable from '@components/NavExpandable';
import { getUserDetails } from '@utils';
import { PermissionGroup } from '@models';
import litmusLogo from '@images/litmus-icon-color.svg';
import css from './SideNav.module.scss';

interface SidebarLinkProps extends NavLinkProps {
Expand Down Expand Up @@ -126,7 +127,7 @@ export default function SideNav(): ReactElement {
<Container className={css.bottomContainer} data-isroutepresent={isPathPresent('settings')}>
{!isPathPresent('settings') && (
<div className={css.iconContainer}>
<Icon className={css.icon} name={'chaos-litmuschaos'} size={200} />
<img src={litmusLogo} alt="Litmus" style={{ width: '200px', height: 'auto', maxHeight: '200px' }} />
</div>
)}
<div className={css.titleContainer}>
Expand Down
6 changes: 6 additions & 0 deletions chaoscenter/web/src/images/litmus-icon-color.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: 2 additions & 2 deletions chaoscenter/web/src/views/Login/LoginPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { Formik, Button, Text, Container, Layout } from '@harnessio/uicore';
import { Icon } from '@harnessio/icons';
import { Color } from '@harnessio/design-system';
import { Form } from 'formik';
import * as Yup from 'yup';
Expand All @@ -10,6 +9,7 @@ import { useStrings } from '@strings';
import type { ErrorModel, LoginMutationProps, LoginResponse, GetCapabilitiesOkResponse } from '@api/auth';
import PasswordInput from '@components/PasswordInput';
import UserNameInput from '@components/UserNameInput';
import litmusLogo from '@images/litmus-icon-color.svg';

interface LoginForm {
username: string;
Expand All @@ -27,7 +27,7 @@ export const LoginPageView = ({ handleLogin, loading, capabilities }: LoginPageV

return (
<AuthLayout>
<Icon name="chaos-litmuschaos" size={60} margin={{ bottom: 'medium' }} />
<img src={litmusLogo} alt="Litmus Logo" style={{ width: '60px', height: '60px', marginBottom: '1rem' }} />
<Text font={{ size: 'large', weight: 'bold' }} color={Color.BLACK}>
{getString('welcomeToLitmus')}
</Text>
Expand Down
Loading