feat(UsersStack): add possibility to render custom wrapper to photo and add example to doc
- close #6907
- [x] Unit-тесты
- [x] Документация фичи
Описание
Необходимо добавить возможность рендеринга обертки для каждого аватара в компоненте UsersStack
Изменения
- Добавил возможность прокидывания функции рендеринга обертки
renderWrapper - Добавил тест проверяющий новый функционал
- Добавил описание новой возможность в документацию, а также добавил новый пример
size-limit report 📦
| Path | Size |
|---|---|
| JS | 372.64 KB (+0.07% 🔺) |
| JS (gzip) | 114.04 KB (+0.07% 🔺) |
| JS (brotli) | 93.89 KB (-0.01% 🔽) |
| JS import Div (tree shaking) | 1.42 KB (0%) |
| CSS | 300.04 KB (+0.02% 🔺) |
| CSS (gzip) | 38.28 KB (+0.04% 🔺) |
| CSS (brotli) | 30.83 KB (+0.13% 🔺) |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Codecov Report
Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
Project coverage is 84.09%. Comparing base (
e728d24) to head (e486b2b). Report is 4 commits behind head on master.
| Files | Patch % | Lines |
|---|---|---|
| ...ages/vkui/src/components/UsersStack/UsersStack.tsx | 83.33% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #7116 +/- ##
==========================================
+ Coverage 83.98% 84.09% +0.11%
==========================================
Files 358 358
Lines 10882 10895 +13
Branches 3589 3591 +2
==========================================
+ Hits 9139 9162 +23
+ Misses 1743 1733 -10
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 84.09% <83.33%> (+0.11%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.