Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions client/modules/dashboard/src/SystemStatus/SystemStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import { Spin, Alert } from 'antd';
import { StatusTag, SystemStatusModal } from '@client/workspace';
import { SystemStatusModal } from '@client/workspace';
import { useSystemOverview } from '@client/hooks';
import styles from './SystemStatus.module.css';

Expand Down Expand Up @@ -49,11 +49,7 @@ export const SystemStatus: React.FC = () => {
{system.display_name}
</td>
<td className={styles.statusCol}>
<StatusTag
variant={system.is_operational ? 'open' : 'error'}
>
{system.is_operational ? 'Open' : 'Closed'}
</StatusTag>
<span>{system.is_operational ? 'Open' : 'Closed'}</span>
</td>
<td className={styles.numericCol}>
{system.is_operational
Expand Down
41 changes: 9 additions & 32 deletions client/modules/dashboard/src/UserGuides/UserGuides.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ import styles from '../Dashboard/Dashboard.module.css';

const videos = [
{
id: 'w0lhfz03QIk',
title: 'Checking Allocation Balance',
id: '1yWRGAdR3XU',
title: 'Overview Of The Dashboard',
},
{
id: 'BSCMzvb8O-M',
title: 'How To Mark Favorite Apps',
},
{
id: '_wDIKMwqej8',
title: 'Adding users to allocation',
title: 'Adding Users To Allocation',
},
{
id: 'X4mb6PJ9GD0',
title: 'Opening a help ticket',
title: 'Opening A Help Ticket',
},
];

Expand All @@ -32,7 +36,7 @@ const UserGuides = () => {
</div>

<div className={styles.videoGrid}>
{videos.slice(0, 2).map((video) => (
{videos.map((video) => (
<div key={video.id} className={styles.videoCard}>
<a
href={`https://www.youtube.com/watch?v=${video.id}`}
Expand Down Expand Up @@ -61,33 +65,6 @@ const UserGuides = () => {
</div>
))}
</div>

<div className={styles.videoCardSingle}>
<a
href={`https://www.youtube.com/watch?v=${videos[2].id}`}
target="_blank"
rel="noopener noreferrer"
>
<img
src={`https://img.youtube.com/vi/${videos[2].id}/0.jpg`}
alt={videos[2].title}
className={styles.videoThumbnail}
/>
</a>
<a
href={`https://www.youtube.com/watch?v=${videos[2].id}`}
target="_blank"
rel="noopener noreferrer"
className={styles.videoTitle}
>
<img
src="https://upload.wikimedia.org/wikipedia/commons/4/42/YouTube_icon_%282013-2017%29.png"
alt="YouTube"
className={styles.youtubeIcon}
/>
{videos[2].title}
</a>
</div>
</div>
);
};
Expand Down
Loading