-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/add btn install #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
KovaSs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix pls
| {title} | ||
| </div> | ||
| <div className={css.rightGroup}> | ||
| {btn && btn} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
packages/@react-cli-ui/cli-ui/src/components/Dependencies/ProjectDependencies.tsx
Outdated
Show resolved
Hide resolved
| onChange={onInputChange} | ||
| /> | ||
| <div className={css.wrapper}> | ||
| {!!packages.length && packages.map(el => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {!!packages.length && packages.map(el => { | |
| {Boolean(packages.length) && packages.map(el => { |
packages/@react-cli-ui/cli-ui/src/modals/DependenciesModal/ItemPackages.tsx
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| return ( | ||
| <div className={`${css.item} ${active === pkg.name ? css.active : ''}`} onClick={() => handleClick(pkg.name)} > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Есть жи пакет classnames
const styles = cn(css.item, {
[css.active]: active === pkg.name
}| } | ||
|
|
||
| export default function Dependencies () { | ||
| const { t } = useTranslation('dependencies') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пора бы вынести все состояние в отдельный кастомный хук, а то уже многовато функционала набралось
| ) | ||
| } | ||
|
|
||
| function renderAnimatedDots () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Уже повторение функционала с созданием проекта давайте вынесем в утилиту
KovaSs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think about this)
packages/@react-cli-ui/cli-ui/src/modals/DependenciesModal/Dependencies.modal.tsx
Show resolved
Hide resolved
…ectDependencies.tsx Co-authored-by: Denis Isaev / Денис Исаев <32105128+KovaSs@users.noreply.github.com>
…mPackages.tsx Co-authored-by: Denis Isaev / Денис Исаев <32105128+KovaSs@users.noreply.github.com>
…endencies.modal.tsx Co-authored-by: Denis Isaev / Денис Исаев <32105128+KovaSs@users.noreply.github.com>
#153 Add node notification
#130 Add function install dependencies
#152 Add button install dependencies
#133 Create functional delete package.json dependencies (WS)
#132 Add button delete dependencies