Skip to content

Commit

Permalink
Use icons for edit/download.
Browse files Browse the repository at this point in the history
Continues #33
  • Loading branch information
grundleborg committed Feb 5, 2024
1 parent 343e0e8 commit e292051
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import {UserProfile} from 'mattermost-redux/types/users';
import {LegalHold} from '@/types';
import Client from '@/client';

import DownloadIcon from './download-outline_F0B8F.svg';
import EditIcon from './pencil-outline_F0CB6.svg';

interface LegalHoldRowProps {
legalHold: LegalHold;
users: UserProfile[];
Expand Down Expand Up @@ -35,19 +38,45 @@ const LegalHoldRow = (props: LegalHoldRowProps) => {
<div>{startsAt}</div>
<div>{endsAt}</div>
<div>{props.users.length} {'users'}</div>
<div>
<div
style={{
display: "inline-flex",

Check failure on line 43 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Strings must use singlequote
alignItems: "center",

Check failure on line 44 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Strings must use singlequote
}}
>
<a
href='#'
onClick={() => props.showUpdateModal(lh)}
style={{
marginRight: "10px",

Check failure on line 51 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Strings must use singlequote
height: "24px",

Check failure on line 52 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Strings must use singlequote
}}
>
{'Edit'}
<span style={{

Check failure on line 55 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Property should be placed on a new line
fill: "rgba(0, 0, 0, 0.5)",

Check failure on line 56 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Strings must use singlequote
}}>

Check failure on line 57 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

The closing bracket must be aligned with the opening tag (expected column 21 on the next line)
<EditIcon/>
</span>
</a>
{' '}
<a href={downloadUrl}>{'Download'}</a>
<a
href={downloadUrl}
style={{
marginRight: "10px",

Check failure on line 65 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Strings must use singlequote
height: "24px",

Check failure on line 66 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Strings must use singlequote
}}
>
<span style={{

Check failure on line 69 in webapp/src/components/legal_hold_table/legal_hold_row/legal_hold_row.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

Property should be placed on a new line
fill: "rgba(0, 0, 0, 0.5)",
}}>
<DownloadIcon/>
</span>
</a>
{' '}
<a
href='#'
onClick={release}
className={"btn btn-danger"}
>{'Release'}</a>
</div>
</React.Fragment>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const LegalHoldTable = (props: LegalHoldTableProps) => {
gridTemplateColumns: 'auto auto auto auto auto',
columnGap: '10px',
rowGap: '10px',
alignItems: "center",
}}
>
<div style={{fontWeight: 'bold'}}>{'Name'}</div>
Expand Down

0 comments on commit e292051

Please sign in to comment.