mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-23 04:03:47 +01:00
chore: minor change
This commit is contained in:
parent
61b2cab0b0
commit
8855108ef4
@ -34,9 +34,10 @@ import StarRateRoundedIcon from '@material-ui/icons/StarRateRounded';
|
|||||||
import SearchIcon from '@material-ui/icons/Search';
|
import SearchIcon from '@material-ui/icons/Search';
|
||||||
|
|
||||||
import { AddLabelButton } from './add-label-button';
|
import { AddLabelButton } from './add-label-button';
|
||||||
// Load fromNow pluggin
|
|
||||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||||
import { LabelsCell } from './labels-cell';
|
import { LabelsCell } from './labels-cell';
|
||||||
|
|
||||||
|
// Load fromNow pluggin
|
||||||
dayjs.extend(relativeTime);
|
dayjs.extend(relativeTime);
|
||||||
|
|
||||||
function descendingComparator<T>(a: T, b: T, orderBy: keyof T) {
|
function descendingComparator<T>(a: T, b: T, orderBy: keyof T) {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Chip from '@material-ui/core/Chip';
|
import Chip from '@material-ui/core/Chip';
|
||||||
import LabelIcon from '@material-ui/icons/Label';
|
|
||||||
|
|
||||||
import { Label } from '../../../../classes/client';
|
import { Label } from '../../../../classes/client';
|
||||||
|
import LabelTwoTone from '@material-ui/icons/LabelTwoTone';
|
||||||
type Props = {
|
type Props = {
|
||||||
labels: Label[],
|
labels: Label[],
|
||||||
};
|
};
|
||||||
@ -14,11 +14,11 @@ export function LabelsCell({ labels }: Props): React.ReactElement<Props> {
|
|||||||
<Chip
|
<Chip
|
||||||
key={label.id}
|
key={label.id}
|
||||||
size="small"
|
size="small"
|
||||||
icon={<LabelIcon />}
|
icon={<LabelTwoTone />}
|
||||||
label={label.title}
|
label={label.title}
|
||||||
clickable
|
clickable
|
||||||
color="primary"
|
color="primary"
|
||||||
style={{ backgroundColor: label.color }}
|
style={{ backgroundColor: label.color, opacity: '0.75' }}
|
||||||
onDelete={() => { return 1; }}
|
onDelete={() => { return 1; }}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
Loading…
Reference in New Issue
Block a user