aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui')
-rw-r--r--vnext/src/ui/Chat.js6
-rw-r--r--vnext/src/ui/Contacts.js7
-rw-r--r--vnext/src/ui/Feeds.js8
-rw-r--r--vnext/src/ui/Settings.js8
4 files changed, 13 insertions, 16 deletions
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 */}
<form>
You can receive notifications to email:<br />
Sent to <select name="account" value={visitor.activeEmail || 'Disabled'} onChange={emailChanged}>
@@ -202,7 +202,7 @@ export default function Settings({ onChange }) {
}
</select>
</form>
- {/** /email_off **/}
+ {/** /email_off */}
<p>&nbsp;</p>
<p>You can post to Juick via e-mail. Send your <u>plain text</u> messages to <a href="mailto:juick@juick.com">juick@juick.com</a>.
You can attach one photo or video file.</p>