Skip to content

Commit

Permalink
Core 4858 update docs view (#668)
Browse files Browse the repository at this point in the history
* CORE: deduplication icon

* CORE-4858: add docs view

* fix lint issues
  • Loading branch information
ekachxaidze98 authored Mar 22, 2024
1 parent 77c102a commit cbb9ced
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/tutorial.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/modules/documentation-membership/documentation-membership.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ReactMarkdown from 'react-markdown'

import styles from './styles.css'
import { classNames } from '../../utils'
import tutorial from '../../../assets/tutorial.svg'

const DocumentationMembership = ({
headerTitle,
Expand All @@ -13,6 +14,7 @@ const DocumentationMembership = ({
imageSource,
docsTitle,
mulltyDocs,
handleContentOpen,
}) => (
<div
className={classNames.use(styles.documentationWrapper, {
Expand Down Expand Up @@ -64,6 +66,17 @@ const DocumentationMembership = ({
{value[0]}
</span>
))}
{item.tutorial && (
// eslint-disable-next-line max-len
// eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
<div
onClick={() => handleContentOpen(item.tutorial)}
className={styles.tutorialWrapper}
>
{item.tutorial?.text}
<img src={tutorial} alt="tutorial icon" />
</div>
)}
</div>
)}
<ReactMarkdown linkTarget="_blank" className={styles.test}>
Expand Down
14 changes: 14 additions & 0 deletions src/modules/documentation-membership/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,17 @@
line-height: 130%;
color: #212121;
}


.tutorial-wrapper {
display: flex;
align-items: center;
margin-left: 32px;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 24px;
color: #8bc34a;
letter-spacing: .035px;
gap: 4px;
}

0 comments on commit cbb9ced

Please sign in to comment.