diff --git a/src/components/Author/AuthorCard/AuthorCard.tsx b/src/components/Author/AuthorCard/AuthorCard.tsx
index 2dd2bf8a..af0aa3be 100644
--- a/src/components/Author/AuthorCard/AuthorCard.tsx
+++ b/src/components/Author/AuthorCard/AuthorCard.tsx
@@ -118,10 +118,6 @@ export const AuthorCard = (props: Props) => {
}
})
- const handleCloseFollowModals = () => {
- redirectPage(router, 'author', { slug: props.author.slug })
- }
-
if (props.isAuthorPage && props.author.userpic?.includes('assets.discours.io')) {
setUserpicUrl(props.author.userpic.replace('100x', '500x500'))
}
@@ -219,7 +215,7 @@ export const AuthorCard = (props: Props) => {
{(f) => }
- {t('SubscriptionWithCount', { count: props.followers.length })}
+ {t('SubscriberWithCount', { count: props.followers.length })}
@@ -232,23 +228,35 @@ export const AuthorCard = (props: Props) => {
- 0}>
-
-
- {(f) => {
- if ('name' in f) {
- return
- } else if ('title' in f) {
- return
- }
- return null
- }}
-
-
- {t('SubscriberWithCount', { count: props?.following.length ?? 0 })}
-
-
-
+
+ 0}>
+
+
+ {(f) => {
+ if ('name' in f) {
+ return
+ } else if ('title' in f) {
+ return
+ }
+ return null
+ }}
+
+
+ {t('SubscriptionWithCount', { count: props?.following.length ?? 0 })}
+
+
+
+ 0}>
+ }
+ />
+
+
@@ -357,7 +365,7 @@ export const AuthorCard = (props: Props) => {
-
+
<>
{t('Followers')}
@@ -372,22 +380,8 @@ export const AuthorCard = (props: Props) => {
>
-
-
-
- }
- />
-
-
-
-
+
<>
{t('Subscriptions')}
diff --git a/src/components/Inbox/CreateModalContent.module.scss b/src/components/Inbox/CreateModalContent.module.scss
index ef6a7115..a7d9da1e 100644
--- a/src/components/Inbox/CreateModalContent.module.scss
+++ b/src/components/Inbox/CreateModalContent.module.scss
@@ -1,6 +1,4 @@
.CreateModalContent {
- padding: 24px;
-
.footer {
padding-top: 12px;
display: flex;
diff --git a/src/components/Inbox/DialogCard.tsx b/src/components/Inbox/DialogCard.tsx
index c5d691da..0e5021de 100644
--- a/src/components/Inbox/DialogCard.tsx
+++ b/src/components/Inbox/DialogCard.tsx
@@ -6,7 +6,6 @@ import formattedTime from '../../utils/formatDateTime'
import { clsx } from 'clsx'
import styles from './DialogCard.module.scss'
import { useLocalize } from '../../context/localize'
-import MD from '../Article/MD'
type DialogProps = {
online?: boolean
@@ -26,10 +25,11 @@ const DialogCard = (props: DialogProps) => {
() => props.members && props.members.filter((member) => member.id !== props.ownId)
)
- const names = createMemo(() =>
- companions()
- ?.map((companion) => companion.name)
- .join(', ')
+ const names = createMemo(
+ () =>
+ companions()
+ ?.map((companion) => companion.name)
+ .join(', ')
)
return (
@@ -55,7 +55,7 @@ const DialogCard = (props: DialogProps) => {
-
+
1}>{names()}
diff --git a/src/components/Inbox/Message.tsx b/src/components/Inbox/Message.tsx
index c01f1c0a..bdcf0b9d 100644
--- a/src/components/Inbox/Message.tsx
+++ b/src/components/Inbox/Message.tsx
@@ -45,7 +45,7 @@ export const Message = (props: Props) => {
-
+
{formattedTime(props.content.createdAt * 1000)()}
diff --git a/src/components/Inbox/Search.module.scss b/src/components/Inbox/Search.module.scss
index a92c66bc..c69ce198 100644
--- a/src/components/Inbox/Search.module.scss
+++ b/src/components/Inbox/Search.module.scss
@@ -1,4 +1,5 @@
.Search {
+ flex: 1;
.field {
position: relative;
background: #fff;
diff --git a/src/components/Nav/Modal/Modal.tsx b/src/components/Nav/Modal/Modal.tsx
index 0b6e1415..5807ef58 100644
--- a/src/components/Nav/Modal/Modal.tsx
+++ b/src/components/Nav/Modal/Modal.tsx
@@ -1,4 +1,4 @@
-import { createEffect, createMemo, createSignal, Show } from 'solid-js'
+import { createEffect, createMemo, createSignal, on, Show } from 'solid-js'
import type { JSX } from 'solid-js'
import { clsx } from 'clsx'
import { hideModal, useModalStore } from '../../../stores/ui'
@@ -8,6 +8,7 @@ import styles from './Modal.module.scss'
import { redirectPage } from '@nanostores/router'
import { router } from '../../../stores/router'
import { Icon } from '../../_shared/Icon'
+import { resetSortedArticles } from '../../../stores/zine/articles'
interface Props {
name: string
@@ -38,6 +39,7 @@ export const Modal = (props: Props) => {
useEscKeyDownHandler(handleHide)
createEffect(() => {
+ console.log('!!! modal:', modal())
setVisible(modal() === props.name)
})
diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx
index 027d260d..652bb8d8 100644
--- a/src/components/Views/Author/Author.tsx
+++ b/src/components/Views/Author/Author.tsx
@@ -67,7 +67,6 @@ export const AuthorView = (props: Props) => {
}
onMount(async () => {
- hideModal()
try {
const userSubscribers = await apiClient.getAuthorFollowers({ slug: props.authorSlug })
setFollowers(userSubscribers)
diff --git a/src/context/inbox.tsx b/src/context/inbox.tsx
index 1356bf4c..356afbd5 100644
--- a/src/context/inbox.tsx
+++ b/src/context/inbox.tsx
@@ -33,7 +33,7 @@ export const InboxProvider = (props: { children: JSX.Element }) => {
const newChats = await apiClient.getChats({ limit: 50, offset: 0 })
setChats(newChats)
} catch (error) {
- console.log(error)
+ console.log('[loadChats]', error)
}
}
diff --git a/src/graphql/types.gen.ts b/src/graphql/types.gen.ts
index 505f5ba2..67dcd2ac 100644
--- a/src/graphql/types.gen.ts
+++ b/src/graphql/types.gen.ts
@@ -310,7 +310,7 @@ export type Notification = {
reaction?: Maybe
seen: Scalars['Boolean']
shout?: Maybe
- type?: Maybe
+ type: NotificationType
}
export enum NotificationType {