diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-06 20:02:36 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-06 20:02:36 -0500 |
| commit | c30a5b644458a7ab03a4dabe93face035aa0a21b (patch) | |
| tree | 2fed8f18909ad185757ae96eb93eb85482ac3a6c /src/client/views/collections/collectionFreeForm | |
| parent | 6d38096db5f0d550866d82d954436447d0c36a65 (diff) | |
more error/warning fixes
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormRemoteCursors.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormRemoteCursors.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormRemoteCursors.tsx index 1118c6a72..45e24bbb2 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormRemoteCursors.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormRemoteCursors.tsx @@ -10,7 +10,7 @@ import { Cast } from '../../../../fields/Types'; import { CollectionViewProps } from '../CollectionView'; import './CollectionFreeFormView.scss'; import * as React from 'react'; -import v5 = require('uuid/v5'); +import * as uuid from 'uuid'; @observer export class CollectionFreeFormRemoteCursors extends React.Component<CollectionViewProps> { @@ -42,7 +42,7 @@ export class CollectionFreeFormRemoteCursors extends React.Component<CollectionV if (el) { const ctx = el.getContext('2d'); if (ctx) { - ctx.fillStyle = '#' + v5(metadata.id, v5.URL).substring(0, 6).toUpperCase() + '22'; + ctx.fillStyle = '#' + uuid.v5(metadata.id, uuid.v5.URL).substring(0, 6).toUpperCase() + '22'; ctx.fillRect(0, 0, 20, 20); ctx.fillStyle = 'black'; |
