Skip to content

Commit b8db132

Browse files
authored
chore: corrections from last pr #15 (#17)
chore: delete changelog.md feat: separate builds fix: change build number colour back to white
1 parent 5bbb520 commit b8db132

File tree

2 files changed

+32
-79
lines changed

2 files changed

+32
-79
lines changed

.archive/Changelog.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

components/changelog/buildComponent.tsx

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,48 +11,49 @@ const BuildComponent = (props: Build) => {
1111
if (changes.length > 0) {
1212
changesList = changes.map((change: Change, index: number) => {
1313
return (
14-
<ChangeComponent
15-
key={index}
16-
author_username={change.author_username}
17-
author_url={change.author_url}
18-
description={change.description}
19-
pr_url={change.pr_url}
20-
pr_number={change.pr_number}
21-
category={change.category}
22-
build={version_number}
23-
date_added={date_created}/>)
14+
<ChangeComponent
15+
key={index}
16+
author_username={change.author_username}
17+
author_url={change.author_url}
18+
description={change.description}
19+
pr_url={change.pr_url}
20+
pr_number={change.pr_number}
21+
category={change.category}
22+
build={version_number}
23+
date_added={date_created}/>)
2424
})
2525
} else {
2626
changesList =
2727
<li className={'py-3 sm:py-4'}>
2828
<div className={'flex items-center space-x-4'}>
29-
<div className={'shrink-0'}>
30-
31-
</div>
32-
<div className={'min-w-fit flex-1'}>
29+
<div className={'flex-1 min-w-fit'}>
3330
<p className={'text-center text-gray-500'}>This build has no registered changes :(</p>
3431
</div>
3532
</div>
3633
</li>
3734
}
3835
return (
39-
<div className={'max-w-xl min-w-sm'}>
40-
<Card>
41-
<div className={'mb-4 flex justify-between'}>
42-
<h5 className="text-xl font-bold leading-none text-yellow-300">
43-
Build: {version_number}
44-
</h5>
45-
<h5 className="text-xl font-bold leading-none text-white">
46-
Date: {date_created}
47-
</h5>
48-
</div>
49-
<div className="flow-root">
50-
<ul className="divide-y divide-gray-700">
51-
{changesList}
52-
</ul>
53-
</div>
54-
</Card>
55-
</div>
36+
<>
37+
<br></br>
38+
<div className={'max-w-xl min-w-sm'}>
39+
<Card>
40+
<div className={'mb-4 flex justify-between'}>
41+
<h5 className="text-xl font-bold leading-none text-white">
42+
Build: {version_number}
43+
</h5>
44+
<h5 className="text-xl font-bold leading-none text-white">
45+
Date: {date_created}
46+
</h5>
47+
</div>
48+
<div className="flow-root">
49+
<ul className="divide-y divide-gray-700">
50+
{changesList}
51+
</ul>
52+
</div>
53+
</Card>
54+
</div>
55+
<br></br>
56+
</>
5657
)
5758
};
5859

0 commit comments

Comments
 (0)