mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-07-30 09:48:47 -04:00
* Fix for issue #54 * Linting and Prettier
This commit is contained in:
committed by
GitHub
parent
dfd0dc98ac
commit
8b93251710
@@ -84,10 +84,7 @@ test.describe('when given valid input', () => {
|
||||
await app.people.verifyProfileCount(totalProfiles)
|
||||
})
|
||||
|
||||
test('show profiles with the correct education level', async ({
|
||||
app,
|
||||
signedInAccount,
|
||||
}) => {
|
||||
test('show profiles with the correct education level', async ({app, signedInAccount}) => {
|
||||
await app.home.clickPeopleLink()
|
||||
|
||||
const totalProfiles = await app.people.profileCountLocator.textContent()
|
||||
@@ -107,10 +104,7 @@ test.describe('when given valid input', () => {
|
||||
await app.people.verifyProfileCount(totalProfiles)
|
||||
})
|
||||
|
||||
test('show profiles with the correct smoking preference', async ({
|
||||
app,
|
||||
signedInAccount,
|
||||
}) => {
|
||||
test('show profiles with the correct smoking preference', async ({app, signedInAccount}) => {
|
||||
await app.home.clickPeopleLink()
|
||||
|
||||
const totalProfiles = await app.people.profileCountLocator.textContent()
|
||||
@@ -133,10 +127,7 @@ test.describe('when given valid input', () => {
|
||||
await app.people.verifyProfileCount(totalProfiles)
|
||||
})
|
||||
|
||||
test('show profiles with the correct cannabis preference', async ({
|
||||
app,
|
||||
signedInAccount,
|
||||
}) => {
|
||||
test('show profiles with the correct cannabis preference', async ({app, signedInAccount}) => {
|
||||
await app.home.clickPeopleLink()
|
||||
|
||||
const totalProfiles = await app.people.profileCountLocator.textContent()
|
||||
@@ -148,10 +139,7 @@ test.describe('when given valid input', () => {
|
||||
await app.people.verifyProfileCount(totalProfiles)
|
||||
})
|
||||
|
||||
test('show profiles with the correct political preference', async ({
|
||||
app,
|
||||
signedInAccount,
|
||||
}) => {
|
||||
test('show profiles with the correct political preference', async ({app, signedInAccount}) => {
|
||||
await app.home.clickPeopleLink()
|
||||
|
||||
const totalProfiles = await app.people.profileCountLocator.textContent()
|
||||
@@ -161,10 +149,7 @@ test.describe('when given valid input', () => {
|
||||
await app.people.verifyProfileCount(totalProfiles)
|
||||
})
|
||||
|
||||
test('show profiles with the correct religion preference', async ({
|
||||
app,
|
||||
signedInAccount,
|
||||
}) => {
|
||||
test('show profiles with the correct religion preference', async ({app, signedInAccount}) => {
|
||||
await app.home.clickPeopleLink()
|
||||
|
||||
const totalProfiles = await app.people.profileCountLocator.textContent()
|
||||
|
||||
@@ -27,7 +27,10 @@ import {useTextEditor} from 'web/components/widgets/editor'
|
||||
import {CompassLoadingIndicator} from 'web/components/widgets/loading-indicator'
|
||||
import {BannedBadge, UserAvatarAndBadge} from 'web/components/widgets/user-link'
|
||||
import {useIsMobile} from 'web/hooks/use-is-mobile'
|
||||
import {usePrivateMessages, useSortedPrivateMessageMemberships,} from 'web/hooks/use-private-messages'
|
||||
import {
|
||||
usePrivateMessages,
|
||||
useSortedPrivateMessageMemberships,
|
||||
} from 'web/hooks/use-private-messages'
|
||||
import {useRedirectIfSignedOut} from 'web/hooks/use-redirect-if-signed-out'
|
||||
import {useUser} from 'web/hooks/use-user'
|
||||
import {useUsersInStore} from 'web/hooks/use-user-supabase'
|
||||
@@ -272,7 +275,7 @@ export const PrivateChat = (props: {
|
||||
avatars={members}
|
||||
onClick={() => setShowUsers(true)}
|
||||
/>
|
||||
) : (
|
||||
) : otherUsers === undefined ? null : (
|
||||
<Avatar size="sm" username="?" noLink />
|
||||
)}
|
||||
{members && members.length > 0 ? (
|
||||
@@ -295,7 +298,7 @@ export const PrivateChat = (props: {
|
||||
.join(', ')}
|
||||
{members.length > 2 && ` & ${members.length - 2} more`}
|
||||
</span>
|
||||
) : (
|
||||
) : otherUsers === undefined ? null : (
|
||||
<span className={'ml-1 italic text-ink-500 text-sm'}>
|
||||
{t('messages.deleted_user', 'Deleted user')}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user