Skip to content

Commit

Permalink
fix: alerts showing (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Dec 5, 2022
1 parent 341acfc commit 35598f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 38 deletions.
10 changes: 5 additions & 5 deletions components/panels/AlertPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const styles = {
};

const Alert = {
props: ['alert', 'index'],
props: ['alert', 'index', 'last'],
render() {
return (
this.alert.active && (
<b-list-group-item
key={this.alert.id}
style={styles.inline}
class={{
'list-group-item-borderless': this.index !== this.alerts.length - 1,
'list-group-item-borderbottom': this.index === this.alerts.length - 1,
'list-group-item-borderless': !this.last,
'list-group-item-borderbottom': this.last,
}}
>
<span class="pull-left">
Expand Down Expand Up @@ -53,7 +53,7 @@ const Alert = {
})}
<br />
{this.alert.mission.reward.credits && (
<b-badge variant="info" style={styles.inline} className="pull-right">
<b-badge variant="info" style={styles.inline} class="pull-right">
{this.alert.mission.reward.credits}cr
</b-badge>
)}
Expand Down Expand Up @@ -93,7 +93,7 @@ export default {
<b-list-group>
{this.alerts
.map((alert, index) => {
return <Alert alert={alert} index={index} />;
return <Alert alert={alert} index={index} last={index === this.alerts.length - 1} />;
})
.filter((a) => a)}
{this.alerts.length === 0 && <NoDataItem text={this.headertext} />}
Expand Down
36 changes: 3 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 35598f2

@vercel
Copy link

@vercel vercel bot commented on 35598f2 Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

warframe-hub – ./

warframe-hub-git-dev-wfcd.vercel.app
hub.warframestat.us
warframe-hub-wfcd.vercel.app

Please sign in to comment.