Skip to content

Commit 0ed63e1

Browse files
committed
improve the active state of the changelog button
1 parent fa0f194 commit 0ed63e1

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

src/assets/App.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,11 @@ Producthunt item
723723
text-transform: lowercase;
724724
background-color: var(--tooltip-accent-color);
725725
}
726-
726+
.changelogNewButton {
727+
display: flex;
728+
flex-direction: row;
729+
align-items: center;
730+
}
727731
.searchBar {
728732
position: relative;
729733
margin: 0 auto;

src/features/changelog/components/Changelog.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React, { useEffect, useState } from 'react'
22
import ReactTooltip from 'react-tooltip'
3-
import { HiBell } from 'react-icons/hi'
3+
import { HiBell, HiSparkles } from 'react-icons/hi'
44
import ReactMarkdown from 'react-markdown'
55
import { format } from 'timeago.js'
66
import BeatLoader from 'react-spinners/BeatLoader'
7-
import {useGetVersions} from "../api/getVersions";
8-
import {useChangelogStore} from "../stores/changelog";
9-
import {getAppVersion} from "src/utils/Os";
7+
import { useGetVersions } from '../api/getVersions'
8+
import { useChangelogStore } from '../stores/changelog'
9+
import { getAppVersion } from 'src/utils/Os'
1010
import { trackChangeLogOpen } from 'src/lib/analytics'
1111

1212
export const Changelog = () => {
@@ -82,7 +82,13 @@ export const Changelog = () => {
8282
data-tip
8383
data-for={tooltipId}
8484
className={'changelogButton' + (!isChangelogRead() ? ' active' : '')}>
85-
{isChangelogRead() ? <HiBell style={{ width: 14 }} /> : `New`}
85+
{isChangelogRead() ? (
86+
<HiBell style={{ width: 14 }} />
87+
) : (
88+
<div className="changelogNewButton">
89+
<HiSparkles style={{ width: 14 }} /> New
90+
</div>
91+
)}
8692
</span>
8793
</>
8894
)

0 commit comments

Comments
 (0)