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
11dacc56
Commit
11dacc56
authored
Nov 24, 2023
by
Alejandro Celaya
Committed by
Alejandro Celaya
Nov 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace LinkButton's color prop usage with variant
parent
63d6a64d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
AnnotationHeader.tsx
src/sidebar/components/Annotation/AnnotationHeader.tsx
+1
-1
Excerpt.tsx
src/sidebar/components/Excerpt.tsx
+1
-1
HelpPanel.tsx
src/sidebar/components/HelpPanel.tsx
+1
-1
LoggedOutMessage.tsx
src/sidebar/components/LoggedOutMessage.tsx
+1
-1
SelectionTabs.tsx
src/sidebar/components/SelectionTabs.tsx
+1
-1
No files found.
src/sidebar/components/Annotation/AnnotationHeader.tsx
View file @
11dacc56
...
@@ -115,7 +115,7 @@ function AnnotationHeader({
...
@@ -115,7 +115,7 @@ function AnnotationHeader({
<
AnnotationUser
authorLink=
{
authorLink
}
displayName=
{
authorName
}
/>
<
AnnotationUser
authorLink=
{
authorLink
}
displayName=
{
authorName
}
/>
{
replyCount
>
0
&&
isCollapsedReply
&&
(
{
replyCount
>
0
&&
isCollapsedReply
&&
(
<
LinkButton
<
LinkButton
color
=
"text-light"
variant
=
"text-light"
onClick=
{
onReplyCountClick
}
onClick=
{
onReplyCountClick
}
title=
"Expand replies"
title=
"Expand replies"
underline=
"hover"
underline=
"hover"
...
...
src/sidebar/components/Excerpt.tsx
View file @
11dacc56
...
@@ -40,7 +40,7 @@ function InlineControls({
...
@@ -40,7 +40,7 @@ function InlineControls({
>
>
<
div
className=
"flex justify-end"
>
<
div
className=
"flex justify-end"
>
<
LinkButton
<
LinkButton
color
=
"text"
variant
=
"text"
onClick=
{
()
=>
setCollapsed
(
!
isCollapsed
)
}
onClick=
{
()
=>
setCollapsed
(
!
isCollapsed
)
}
expanded=
{
!
isCollapsed
}
expanded=
{
!
isCollapsed
}
title=
"Toggle visibility of full excerpt text"
title=
"Toggle visibility of full excerpt text"
...
...
src/sidebar/components/HelpPanel.tsx
View file @
11dacc56
...
@@ -25,7 +25,7 @@ function HelpPanelNavigationButton({
...
@@ -25,7 +25,7 @@ function HelpPanelNavigationButton({
onClick
,
onClick
,
}:
HelpPanelNavigationButtonProps
)
{
}:
HelpPanelNavigationButtonProps
)
{
return
(
return
(
<
LinkButton
color
=
"brand"
onClick=
{
onClick
}
underline=
"hover"
>
<
LinkButton
variant
=
"brand"
onClick=
{
onClick
}
underline=
"hover"
>
<
div
className=
"flex items-center gap-x-1"
>
<
div
className=
"flex items-center gap-x-1"
>
{
children
}
{
children
}
<
ArrowRightIcon
className=
"w-em h-em"
/>
<
ArrowRightIcon
className=
"w-em h-em"
/>
...
...
src/sidebar/components/LoggedOutMessage.tsx
View file @
11dacc56
...
@@ -28,7 +28,7 @@ function LoggedOutMessage({ onLogin }: LoggedOutMessageProps) {
...
@@ -28,7 +28,7 @@ function LoggedOutMessage({ onLogin }: LoggedOutMessageProps) {
create a free account
create a free account
</
Link
>
{
' '
}
</
Link
>
{
' '
}
or
{
' '
}
or
{
' '
}
<
LinkButton
inline
color
=
"text"
onClick=
{
onLogin
}
underline=
"always"
>
<
LinkButton
inline
variant
=
"text"
onClick=
{
onLogin
}
underline=
"always"
>
log in
log in
</
LinkButton
>
</
LinkButton
>
.
.
...
...
src/sidebar/components/SelectionTabs.tsx
View file @
11dacc56
...
@@ -58,7 +58,7 @@ function Tab({
...
@@ -58,7 +58,7 @@ function Tab({
classes=
{
classnames
(
'bg-transparent min-w-[5.25rem]'
,
{
classes=
{
classnames
(
'bg-transparent min-w-[5.25rem]'
,
{
'font-bold'
:
isSelected
,
'font-bold'
:
isSelected
,
})
}
})
}
color
=
"text"
variant
=
"text"
// Listen for `onMouseDown` so that the tab is selected when _pressed_
// Listen for `onMouseDown` so that the tab is selected when _pressed_
// as this makes the UI feel faster. Also listen for `onClick` as a fallback
// as this makes the UI feel faster. Also listen for `onClick` as a fallback
// to enable selecting the tab via other input methods.
// to enable selecting the tab via other input methods.
...
...
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