interface SilverUser {
name: string;
- link: string;
+ link?: string;
}
let general = [
+ 'twilight loki',
'Andrew Plaza',
'Jonathan Cremin',
'Arthur Nieuwland',
];
let highlighted = ['Oskenso Kashi', 'Alex Benishek'];
let silver: Array<SilverUser> = [
+ {
+ name: 'DiscountFuneral',
+ },
{
name: 'Redjoker',
link: 'https://iww.org',
{silver.map(s => (
<div class="card col-12 col-md-2">
<div>
- <a href={s.link} target="_blank" rel="noopener">
- 💎 {s.name}
- </a>
+ {s.link ? (
+ <a href={s.link} target="_blank" rel="noopener">
+ 💎 {s.name}
+ </a>
+ ) : (
+ <div>💎 {s.name}</div>
+ )}
</div>
</div>
))}