From c89f8e8933724ce0f258d97d18eb361ebd2555ae Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 1 Nov 2022 20:37:05 +0300 Subject: Cleanup JSDoc warnings --- vnext/src/ui/Chat.js | 6 ++++-- vnext/src/ui/Contacts.js | 7 +------ vnext/src/ui/Feeds.js | 8 ++++---- vnext/src/ui/Settings.js | 8 ++++---- 4 files changed, 13 insertions(+), 16 deletions(-) (limited to 'vnext') diff --git a/vnext/src/ui/Chat.js b/vnext/src/ui/Chat.js index 6bcff837..93ed347e 100644 --- a/vnext/src/ui/Chat.js +++ b/vnext/src/ui/Chat.js @@ -13,12 +13,14 @@ import { useVisitor } from './VisitorContext'; import { Helmet } from 'react-helmet'; /** - * @typedef {Object} ChatProps + * + * @typedef {object} ChatProps * @property {EventSource} connection */ /** * Chat component + * * @param {ChatProps} props */ export default function Chat(props) { @@ -48,7 +50,7 @@ export default function Chat(props) { let onSend = (template) => { pm(template.to.uname, template.body) - .then(res => { + .then(() => { loadChat(params.user); }).catch(console.log); }; diff --git a/vnext/src/ui/Contacts.js b/vnext/src/ui/Contacts.js index 1e3e3072..07e4dfc4 100644 --- a/vnext/src/ui/Contacts.js +++ b/vnext/src/ui/Contacts.js @@ -10,7 +10,7 @@ import { ChatSpinner } from './Spinner'; /** * */ -export default function Contacts(props) { +export default function Contacts() { const [pms, setPms] = useState([]); useEffect(() => { getChats() @@ -34,11 +34,6 @@ export default function Contacts(props) { ); } -const wrapperStyle = { - display: 'flex', - backgroundColor: '#fff' -}; - const chatListStyle = { display: 'flex', flexDirection: 'column', diff --git a/vnext/src/ui/Feeds.js b/vnext/src/ui/Feeds.js index c0698204..fc402583 100644 --- a/vnext/src/ui/Feeds.js +++ b/vnext/src/ui/Feeds.js @@ -41,7 +41,7 @@ function RequireAuth({ children }) { } /** - * @param {PageProps} props + * */ export function Discover() { const location = useLocation(); @@ -62,7 +62,7 @@ export function Discover() { } /** - * @param {PageProps} props + * */ export function Discussions() { const query = { @@ -80,7 +80,7 @@ export function Discussions() { } /** - * @param {PageProps} props + * */ export function Blog() { const { user } = useParams(); @@ -133,7 +133,7 @@ export function Tag() { } /** - * @param {PageProps} props + * */ export function Home() { const query = { diff --git a/vnext/src/ui/Settings.js b/vnext/src/ui/Settings.js index 6575fb87..82fbcc9e 100644 --- a/vnext/src/ui/Settings.js +++ b/vnext/src/ui/Settings.js @@ -62,7 +62,7 @@ export default function Settings({ onChange }) { const [visitor] = useVisitor(); - let passwordChanged = (event) => { + let passwordChanged = () => { console.log('password changed'); }; let onSubmitPassword = (event) => { @@ -71,7 +71,7 @@ export default function Settings({ onChange }) { } console.log('password update'); }; - let emailChanged = (event) => { + let emailChanged = () => { console.log('email update'); }; let disableTelegram = () => { @@ -188,7 +188,7 @@ export default function Settings({ onChange }) { { visitor.emails && <> - {/** email_off **/} + {/** email_off */}
You can receive notifications to email:
Sent to
- {/** /email_off **/} + {/** /email_off */}

 

You can post to Juick via e-mail. Send your plain text messages to juick@juick.com. You can attach one photo or video file.

-- cgit v1.2.3