1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-24 06:54:27 +07:00

fix(installlistitem): changed the wrong icon (#211)

This commit is contained in:
Anix 2019-10-25 03:21:27 +05:30 committed by Ayush Sharma
parent 5d6ad3d783
commit 4498aad4bf

View File

@ -51,14 +51,14 @@ const InstallListItem: React.FC<Interface> = ({ packageName, dependencyManager }
case DependencyManager.YARN: case DependencyManager.YARN:
return ( return (
<InstallItem button={true} data-testid={'installListItem-yarn'}> <InstallItem button={true} data-testid={'installListItem-yarn'}>
<PackageMangerAvatar alt="yarn" src={pnpmLogo} /> <PackageMangerAvatar alt="yarn" src={yarnLogo} />
<InstallListItemText primary={<CopyToClipBoard text={`yarn add ${packageName}`} />} secondary={'Install using yarn'} /> <InstallListItemText primary={<CopyToClipBoard text={`yarn add ${packageName}`} />} secondary={'Install using yarn'} />
</InstallItem> </InstallItem>
); );
case DependencyManager.PNPM: case DependencyManager.PNPM:
return ( return (
<InstallItem button={true} data-testid={'installListItem-pnpm'}> <InstallItem button={true} data-testid={'installListItem-pnpm'}>
<PackageMangerAvatar alt={'pnpm'} src={yarnLogo} /> <PackageMangerAvatar alt={'pnpm'} src={pnpmLogo} />
<InstallListItemText primary={<CopyToClipBoard text={`pnpm install ${packageName}`} />} secondary={'Install using pnpm'} /> <InstallListItemText primary={<CopyToClipBoard text={`pnpm install ${packageName}`} />} secondary={'Install using pnpm'} />
</InstallItem> </InstallItem>
); );