Commit 5a18c4b3 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Convert LoggedOutMessage to TS

parent a3985ba1
...@@ -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 (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment