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
5a18c4b3
Commit
5a18c4b3
authored
Nov 04, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Nov 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert LoggedOutMessage to TS
parent
a3985ba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
LoggedOutMessage.tsx
src/sidebar/components/LoggedOutMessage.tsx
+4
-7
No files found.
src/sidebar/components/LoggedOutMessage.
js
→
src/sidebar/components/LoggedOutMessage.
tsx
View file @
5a18c4b3
...
@@ -7,19 +7,16 @@ import {
...
@@ -7,19 +7,16 @@ import {
import
{
useSidebarStore
}
from
'../store'
;
import
{
useSidebarStore
}
from
'../store'
;
/**
export
type
LoggedOutMessageProps
=
{
* @typedef LoggedOutMessageProps
onLogin
:
()
=>
void
;
* @prop {() => void} onLogin
};
*/
/**
/**
* Render a call-to-action to log in or sign up. This message is intended to be
* Render a call-to-action to log in or sign up. This message is intended to be
* displayed to non-auth'd users when viewing a single annotation in a
* displayed to non-auth'd users when viewing a single annotation in a
* direct-linked context (i.e. URL with syntax `/#annotations:<annotation_id>`)
* direct-linked context (i.e. URL with syntax `/#annotations:<annotation_id>`)
*
* @param {LoggedOutMessageProps} props
*/
*/
function
LoggedOutMessage
({
onLogin
})
{
function
LoggedOutMessage
({
onLogin
}
:
LoggedOutMessageProps
)
{
const
store
=
useSidebarStore
();
const
store
=
useSidebarStore
();
return
(
return
(
...
...
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