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
6fce0ccd
Commit
6fce0ccd
authored
Nov 01, 2021
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Nov 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `AnnotationPublishControl` to use `Icon`
parent
d491a691
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
AnnotationPublishControl.js
...sidebar/components/Annotation/AnnotationPublishControl.js
+3
-3
AnnotationPublishControl.scss
src/styles/sidebar/components/AnnotationPublishControl.scss
+0
-5
No files found.
src/sidebar/components/Annotation/AnnotationPublishControl.js
View file @
6fce0ccd
import
{
LabeledButton
,
SvgIc
on
}
from
'@hypothesis/frontend-shared'
;
import
{
Icon
,
LabeledButt
on
}
from
'@hypothesis/frontend-shared'
;
import
{
useStoreProxy
}
from
'../../store/use-store'
;
import
{
isNew
,
isReply
}
from
'../../helpers/annotation-metadata'
;
...
...
@@ -73,12 +73,12 @@ function AnnotationPublishControl({
const
menuLabel
=
(
<
div
className
=
"annotation-publish-button__menu-label"
style
=
{
buttonStyle
}
>
<
SvgIcon
name
=
"expand-menu"
className
=
"u-icon--small"
/>
<
Icon
name
=
"expand-menu"
classes
=
"u-icon--small"
/>
<
/div
>
);
return
(
<
div
className
=
"
AnnotationPublishControl
"
>
<
div
className
=
"
hyp-u-layout-row hyp-u-horizontal-spacing--4
"
>
<
div
className
=
"annotation-publish-button"
>
<
LabeledButton
classes
=
"PublishControlButton"
...
...
src/styles/sidebar/components/AnnotationPublishControl.scss
View file @
6fce0ccd
@use
'../../mixins/layout'
;
@use
'../../variables'
as
var
;
.AnnotationPublishControl
{
@include
layout
.
row
;
@include
layout
.
horizontal-rhythm
(
var
.
$layout-space
);
}
// A split control with a primary submit button on the left
// and a drop-down menu for changing
// the annotation's privacy settings on the right
...
...
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