Skip to content

Commit

Permalink
button -> a, styles fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvyshnevska committed Dec 8, 2023
1 parent 136509a commit 7eb5b45
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions FrontEnd/src/components/ProfileDetail/MainInfo/TitleInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ function TitleInfo({ isAuthorized, data }) {
</button>
)}
{ownProfile && (
<button
type="button"
className={`${classes['title-block__button']}`}
<a
role="link"
className={`${classes['title-block__button']} ${classes['title-block__link']}`}
onClick={navigateToEditProfile}
>
<span className={`${classes['title-block__button--text']}`}>Редагувати профіль</span>
</button>
</a>
)}
</>
) : null}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.title-block {
display: flex;
width: 1304px;
width: 1280px;
padding: 16px 12px 8px 12px;
align-items: flex-start;
gap: 12px;
Expand All @@ -26,10 +26,9 @@

.title-block__about {
display: flex;
width: 1010px;
flex-direction: column;
align-items: flex-start;
flex-shrink: 0;
flex: 1 0 0;
}

.title-block__activity {
Expand Down Expand Up @@ -77,7 +76,7 @@

.title-block__button {
display: flex;
height: 34px;
height: 32px;
padding: 5px 15px;
justify-content: center;
align-items: center;
Expand All @@ -88,6 +87,10 @@
cursor: pointer;
}

.title-block__link {
height: 22px;
}

.added_to_saved__button {
background: var(--primary-green-80, #1F9A7C);
}
Expand Down

0 comments on commit 7eb5b45

Please sign in to comment.