Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Sep 5, 2024
1 parent c65017f commit 9b3d12d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion frontend/src/component/onboarding/ConnectSdkDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ export const ConnectSdkDialog = ({
<GenerateApiKeyConcepts />
) : null}
{isLargeScreen && isTestConnectionStage ? (
<ConnectionInformation onConnection={onClose} />
<ConnectionInformation
projectId={project}
onConnection={onClose}
/>
) : null}
</Box>
</StyledDialog>
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/component/onboarding/ConnectionInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { styled, Typography, useTheme } from '@mui/material';
import { ConditionallyRender } from '../common/ConditionallyRender/ConditionallyRender';
import { WhitePulsingAvatar } from '../project/Project/Import/PulsingAvatar';
import Pending from '@mui/icons-material/Pending';
import { useRequiredPathParam } from '../../hooks/useRequiredPathParam';
import useProjectOverview from '../../hooks/api/getters/useProjectOverview/useProjectOverview';
import useProjectOverview from 'hooks/api/getters/useProjectOverview/useProjectOverview';
import { useEffect } from 'react';

interface IConnectionInformationProps {
onConnection: () => void;
projectId: string;
}
export const Container = styled('div')(({ theme }) => ({
backgroundColor: theme.palette.background.sidebar,
Expand Down Expand Up @@ -50,10 +50,10 @@ export const ConnectionStatus = styled('div')(({ theme }) => ({

export const ConnectionInformation = ({
onConnection,
projectId,
}: IConnectionInformationProps) => {
const theme = useTheme();
const id = useRequiredPathParam('projectId');
const { project } = useProjectOverview(id, {
const { project } = useProjectOverview(projectId, {
refreshInterval: 1000,
});

Expand Down

0 comments on commit 9b3d12d

Please sign in to comment.