Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador annotations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador annotations
Commits
fcf8de60
Commit
fcf8de60
authored
1 year ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
WIP Commit de la victoire, need to be cleaned
parent
6b8fd467
No related branches found
No related tags found
2 merge requests
!11
Fix forward ref from Canvas Annotation Wrapper to CanvasAnnotation
,
!10
Draft: MigratingAnnotationCreation to MUI5.
Pipeline
#1680
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CanvasListItem.js
+7
-3
7 additions, 3 deletions
src/CanvasListItem.js
with
7 additions
and
3 deletions
src/CanvasListItem.js
+
7
−
3
View file @
fcf8de60
import
React
,
{
Component
,
createRef
}
from
'
react
'
;
import
React
,
{
Component
,
createRef
,
forwardRef
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
DeleteIcon
from
'
@mui/icons-material/DeleteForever
'
;
import
EditIcon
from
'
@mui/icons-material/Edit
'
;
...
...
@@ -20,6 +20,8 @@ class CanvasListItem extends Component {
this
.
handleMouseHover
=
this
.
handleMouseHover
.
bind
(
this
);
this
.
handleDelete
=
this
.
handleDelete
.
bind
(
this
);
this
.
handleEdit
=
this
.
handleEdit
.
bind
(
this
);
console
.
log
(
props
.
ref
);
}
/** */
...
...
@@ -89,10 +91,12 @@ class CanvasListItem extends Component {
console
.
log
(
'
this.props :
'
,
...
this
.
props
);
const
{
isHovering
}
=
this
.
state
;
const
{
windowViewType
,
toggleSingleCanvasDialogOpen
}
=
this
.
context
;
return
(
<
div
onMouseEnter
=
{
this
.
handleMouseHover
}
onMouseLeave
=
{
this
.
handleMouseHover
}
className
=
"
mirador-annotation-list-item
"
>
{
isHovering
&&
this
.
editable
()
&&
(
<
div
...
...
@@ -126,7 +130,7 @@ class CanvasListItem extends Component {
<
li
{...
this
.
props
}
// eslint-disable-line react/jsx-props-no-spreading
>
{
children
}
{
/*
{children}
*/
}
<
/li
>
<
/div
>
);
...
...
@@ -143,4 +147,4 @@ CanvasListItem.propTypes = {
CanvasListItem
.
contextType
=
AnnotationActionsContext
;
export
default
CanvasListItem
;
export
default
forwardRef
((
props
,
ref
)
=>
<
CanvasListItem
{...
props
}
containerRef
=
{
ref
}
/>
)
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment