weareinreach / InReach

Detected the use of variables before they are defined JS-0357
Anti-pattern
Major
3 days agoa year old
'SelectedItemCount' was used before it was defined
272				<FilterDisplay>{t('more.options')}</FilterDisplay>
273			</Group>
274			{selectedItemCount > 0 ? (
275				<SelectedItemCount selectedItemCount={selectedItemCount} />276			) : (
277				<Icon icon='carbon:chevron-down' height={24} />
278			)}
'SelectedItemCount' was used before it was defined
253		<>
254			<Group spacing={8} noWrap>
255				<FilterDisplay>{t('more.options')}</FilterDisplay>
256				{selectedItemCount > 0 ? <SelectedItemCount selectedItemCount={selectedItemCount} /> : null}257			</Group>
258			{selectedItemCount > 0 ? (
259				<Link
'SocialMediaDisplay' was used before it was defined
 15import { type SocialMediaProps } from './types'
 16
 17export const SocialMedia = ({ edit, ...props }: SocialMediaProps) =>
 18	edit ? <SocialMediaEdit {...props} /> : <SocialMediaDisplay {...props} /> 19
 20const SocialMediaDisplay = ({ parentId = '', passedData, locationOnly }: SocialMediaProps) => {
 21	const { data } = api.orgSocialMedia.forContactInfo.useQuery(
'SocialMediaEdit' was used before it was defined
 15import { type SocialMediaProps } from './types'
 16
 17export const SocialMedia = ({ edit, ...props }: SocialMediaProps) =>
 18	edit ? <SocialMediaEdit {...props} /> : <SocialMediaDisplay {...props} /> 19
 20const SocialMediaDisplay = ({ parentId = '', passedData, locationOnly }: SocialMediaProps) => {
 21	const { data } = api.orgSocialMedia.forContactInfo.useQuery(
'WebsitesEdit' was used before it was defined
 17const anyTrue = (...args: boolean[]) => args.some((x) => x)
 18
 19export const Websites = ({ edit, ...props }: WebsitesProps) =>
 20	edit ? <WebsitesEdit {...props} /> : <WebsitesDisplay {...props} /> 21
 22const WebsitesDisplay = ({
 23	parentId = '',