Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
09ff0e7f
Commit
09ff0e7f
authored
Oct 12, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Nov 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update shared components in `Annotation`
parent
3bf039a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
Annotation.js
src/sidebar/components/Annotation/Annotation.js
+10
-12
No files found.
src/sidebar/components/Annotation/Annotation.js
View file @
09ff0e7f
import
{
Actions
,
Spinner
}
from
'@hypothesis/frontend-shared
'
;
import
{
CardActions
,
Spinner
}
from
'@hypothesis/frontend-shared/lib/next
'
;
import
classnames
from
'classnames'
;
import
{
useMemo
}
from
'preact/hooks'
;
...
...
@@ -45,15 +45,13 @@ function SavingMessage() {
)}
data
-
testid
=
"saving-message"
>
<
Spinner
classes
=
{
classnames
(
'text-xl'
,
// Slowly fade in the Spinner such that it only shows up if
// the saving is slow
'animate-fade-in-slow'
)}
size
=
"small"
/>
<
span
// Slowly fade in the Spinner such that it only shows up if the saving
// is slow
className
=
"text-xl animate-fade-in-slow"
>
<
Spinner
size
=
"sm"
/>
<
/span
>
<
div
className
=
"text-color-text-light font-medium"
>
Saving
...
<
/div
>
<
/div
>
);
...
...
@@ -141,9 +139,9 @@ function Annotation({
)}
{
isSaving
&&
<
SavingMessage
/>
}
{
showActions
&&
(
<
Actions
classes
=
"grow"
>
<
Card
Actions
classes
=
"grow"
>
<
AnnotationActionBar
annotation
=
{
annotation
}
onReply
=
{
onReply
}
/
>
<
/Actions
>
<
/
Card
Actions
>
)}
<
/footer
>
)}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment