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
a7a4bb10
Commit
a7a4bb10
authored
Jan 13, 2023
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Jan 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `ShareAnnotationsPanel` to use updated shared components
parent
54e7beed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
ShareAnnotationsPanel.tsx
src/sidebar/components/ShareAnnotationsPanel.tsx
+12
-11
No files found.
src/sidebar/components/ShareAnnotationsPanel.tsx
View file @
a7a4bb10
import
{
CopyIcon
,
IconButton
,
Input
,
InputGroup
,
LockIcon
,
Spinner
,
Icon
,
TextInput
,
TextInputWithButton
,
}
from
'@hypothesis/frontend-shared'
;
}
from
'@hypothesis/frontend-shared/lib/next'
;
import
{
useSidebarStore
}
from
'../store'
;
import
{
pageSharingLink
}
from
'../helpers/annotation-sharing'
;
...
...
@@ -57,7 +58,7 @@ function ShareAnnotationsPanel({ toastMessenger }: ShareAnnotationPanelProps) {
<
SidebarPanel
title=
{
panelTitle
}
panelName=
"shareGroupAnnotations"
>
{
!
sharingReady
&&
(
<
div
className=
"flex flex-row items-center justify-center"
>
<
Spinner
/>
<
Spinner
size=
"md"
/>
</
div
>
)
}
{
sharingReady
&&
(
...
...
@@ -78,20 +79,20 @@ function ShareAnnotationsPanel({ toastMessenger }: ShareAnnotationPanelProps) {
)
}
</
div
>
<
div
>
<
TextInputWithButton
>
<
Text
Input
<
InputGroup
>
<
Input
aria
-
label=
"Use this URL to share these annotations"
type=
"text"
value=
{
shareURI
}
readOnly
/>
<
IconButton
icon=
"copy"
icon=
{
CopyIcon
}
onClick=
{
copyShareLink
}
title=
"Copy share link"
variant=
"dark"
/>
</
TextInputWithButton
>
</
InputGroup
>
</
div
>
<
p
data
-
testid=
"sharing-details"
>
{
notNull
(
focusedGroup
).
type
===
'private'
?
(
...
...
@@ -108,8 +109,8 @@ function ShareAnnotationsPanel({ toastMessenger }: ShareAnnotationPanelProps) {
)
}{
' '
}
<
span
>
Private (
<
Icon
name=
"lock"
classes=
"inline -mt-0.5"
/>
<
em
>
Only Me
</
em
>
) annotations are only visible to you.
<
LockIcon
className=
"inline w-em h-em ml-0.5 -mt-0.5"
/>
{
' '
}
<
em
>
Only Me
</
em
>
) annotations are only visible to you.
</
span
>
</
p
>
<
div
className=
"text-[24px]"
>
...
...
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