This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor: connections container

+11 -14
+4 -7
src/webapp/features/semble/components/sembleTabs/SembleTabs.tsx
··· 20 20 import SembleMentionsContainer from '../../containers/sembleMentionsContainer/SembleMentionsContainer'; 21 21 import SembleMentionsContainerSkeleton from '../../containers/sembleMentionsContainer/Skeleton.SembleMentionsContainer'; 22 22 23 - import SembleConnectionsContainer from '../../containers/sembleConnectionsContainer/SembleConnectionsContainer'; 24 - import SembleConnectionsContainerSkeleton from '../../containers/sembleConnectionsContainer/Skeleton.SembleConnectionsContainer'; 23 + import ConnectionsContainer from '@/features/connections/containers/connectionsContainer/ConnectionsContainer'; 24 + import ConnectionsContainerSkeleton from '@/features/connections/containers/connectionsContainer/Skeleton.ConnectionsContainer'; 25 25 26 26 import UrlGraphView from '@/features/graph/components/graphView/UrlGraphView'; 27 27 ··· 108 108 </TabsPanel> 109 109 110 110 <TabsPanel value="connections"> 111 - <Suspense 112 - fallback={<SembleConnectionsContainerSkeleton />} 113 - key={props.url} 114 - > 115 - <SembleConnectionsContainer url={props.url} /> 111 + <Suspense fallback={<ConnectionsContainerSkeleton />} key={props.url}> 112 + <ConnectionsContainer url={props.url} /> 116 113 </Suspense> 117 114 </TabsPanel> 118 115
+1 -1
src/webapp/features/semble/containers/sembleConnectionsContainer/Error.SembleConnectionsContainer.tsx src/webapp/features/connections/containers/connectionsContainer/Error.ConnectionsContainer.tsx
··· 1 1 import { Stack, Text } from '@mantine/core'; 2 2 3 - export default function SembleConnectionsContainerError() { 3 + export default function ConnectionsContainerError() { 4 4 return ( 5 5 <Stack align="center" justify="center" py={'xl'}> 6 6 <Text c={'red'} fw={600}>
+4 -4
src/webapp/features/semble/containers/sembleConnectionsContainer/SembleConnectionsContainer.tsx src/webapp/features/connections/containers/connectionsContainer/ConnectionsContainer.tsx
··· 5 5 import useAllConnections from '@/features/connections/lib/queries/useAllConnections'; 6 6 import InfiniteScroll from '@/components/contentDisplay/infiniteScroll/InfiniteScroll'; 7 7 import { Grid, Group, Stack } from '@mantine/core'; 8 - import SembleConnectionsContainerError from './Error.SembleConnectionsContainer'; 8 + import ConnectionsContainerError from './Error.ConnectionsContainer'; 9 9 import ConnectionItem from '@/features/connections/components/connectionItem/ConnectionItem'; 10 - import SembleEmptyTab from '../../components/sembleEmptyTab/SembleEmptyTab'; 10 + import SembleEmptyTab from '@/features/semble/components/sembleEmptyTab/SembleEmptyTab'; 11 11 import { BiLink } from 'react-icons/bi'; 12 12 import { useDisclosure } from '@mantine/hooks'; 13 13 import { ConnectionFilters } from '@/features/connections/components/connectionFilters/ConnectionFilters'; ··· 22 22 url: string; 23 23 } 24 24 25 - export default function SembleConnectionsContainer(props: Props) { 25 + export default function ConnectionsContainer(props: Props) { 26 26 const [modalOpened, { open: openModal, close: closeModal }] = 27 27 useDisclosure(false); 28 28 ··· 99 99 : `No connections found ${direction} this link`; 100 100 101 101 if (forwardError || backwardError || allError) { 102 - return <SembleConnectionsContainerError />; 102 + return <ConnectionsContainerError />; 103 103 } 104 104 105 105 const connections =
+1 -1
src/webapp/features/semble/containers/sembleConnectionsContainer/Skeleton.SembleConnectionsContainer.tsx src/webapp/features/connections/containers/connectionsContainer/Skeleton.ConnectionsContainer.tsx
··· 1 1 import { Grid, Group, Skeleton, Stack } from '@mantine/core'; 2 2 3 - export default function SembleConnectionsContainerSkeleton() { 3 + export default function ConnectionsContainerSkeleton() { 4 4 return ( 5 5 <Stack gap={'md'} align="center"> 6 6 <Group justify="space-between" w={'100%'} maw={600}>
+1 -1
src/webapp/next-env.d.ts
··· 1 1 /// <reference types="next" /> 2 2 /// <reference types="next/image-types/global" /> 3 - import "./.next/types/routes.d.ts"; 3 + import "./.next/dev/types/routes.d.ts"; 4 4 5 5 // NOTE: This file should not be edited 6 6 // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.