Skip to content

Commit

Permalink
fix(ui): merge changelog and previous release tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Jan 21, 2025
1 parent ca28a57 commit 60cdfae
Show file tree
Hide file tree
Showing 22 changed files with 1,015 additions and 442 deletions.
4 changes: 4 additions & 0 deletions client/src/api/AppHubAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export default class AppHubAPI {
{ useAuth = false, external = false, params = {} } = {},
fetchOptions
) {
if (!path) {
return
}

const options = {
...this.defaultFetchOptions,
...fetchOptions,
Expand Down
195 changes: 0 additions & 195 deletions client/src/components/Versions/ChangeLogViewer.js

This file was deleted.

71 changes: 0 additions & 71 deletions client/src/components/Versions/ChangeLogViewer.module.css

This file was deleted.

29 changes: 0 additions & 29 deletions client/src/components/Versions/ChangelogViewer.spec.jsx

This file was deleted.

8 changes: 7 additions & 1 deletion client/src/components/Versions/Versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ const useChannels = (appId) => {
return { availableChannels, channelsFilter, setChannelsFilter }
}

const Versions = ({ appId, renderDeleteVersionButton, showDownloadCount }) => {
const Versions = ({
appId,
renderDeleteVersionButton,
showDownloadCount,
changelogData,
}) => {
const { availableChannels, channelsFilter, setChannelsFilter } =
useChannels(appId)

Expand Down Expand Up @@ -106,6 +111,7 @@ const Versions = ({ appId, renderDeleteVersionButton, showDownloadCount }) => {
renderDeleteVersionButton={renderDeleteVersionButton}
showDownloadCount={showDownloadCount}
appId={appId}
changelogData={changelogData}
/>
) : (
<em className={styles.noVersions}>
Expand Down
Loading

0 comments on commit 60cdfae

Please sign in to comment.