Skip to content

Conversation

@exuvia-dev
Copy link

Cards

  • добавил отображение тегов при создании карточки

Theme

  • пофиксил spacing

UI

  • добавил пару иконок
  • добавил базовый chip компонент.
  • вынес Input (ранее использовался только в /src/features/search-bar/molecules/search.tsx)

also fixed theme.spacing

ISSUES CLOSED: #160
also fixed theme.spacing
ISSUES CLOSED: #160
also fixed theme.spacing
ISSUES CLOSED: #160
Comment on lines +21 to +34
const TagsWrapperStyled = styled.div`
display: flex;
margin: ${theme.spacing(-2, 0, 2, -2)};
flex-wrap: wrap;
`;
const TagsContainer = reflect<{ isEmpty: boolean }>({
view: ({ isEmpty, children }) => {
if (isEmpty) return null;
return <TagsWrapperStyled>{children}</TagsWrapperStyled>;
},
bind: {
isEmpty: $tags.map((tags) => !tags.length),
},
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const TagsWrapperStyled = styled.div`
display: flex;
margin: ${theme.spacing(-2, 0, 2, -2)};
flex-wrap: wrap;
`;
const TagsContainer = reflect<{ isEmpty: boolean }>({
view: ({ isEmpty, children }) => {
if (isEmpty) return null;
return <TagsWrapperStyled>{children}</TagsWrapperStyled>;
},
bind: {
isEmpty: $tags.map((tags) => !tags.length),
},
});
const TagsContainer = reflect<{ 'data-empty': boolean }>({
view: styled.div`
display: flex;
margin: ${theme.spacing(-2, 0, 2, -2)};
flex-wrap: wrap;
&[data-empty="true"] {
display: none;
}
`,
bind: {
'data-empty': $noTags,
},
})

Copy link
Member

@sergeysova sergeysova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ожидаю, что остальные правки от @OlegBrony из чата прилетят отдельными ПРами

@sergeysova sergeysova marked this pull request as ready for review August 19, 2021 17:51
@sergeysova sergeysova merged commit 3bc53ee into master Aug 19, 2021
@sergeysova sergeysova deleted the feature/box-160-add-tags-for-cards branch August 19, 2021 17:51
@azinit azinit changed the title BOX-150 (features/card): adds tags for cards BOX-160 (features/card): adds tags for cards Aug 19, 2021
@sergeysova sergeysova changed the title BOX-160 (features/card): adds tags for cards BOX-160 adds tags for cards Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants