Skip to content

Consistent UI for the Environments #1718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 28, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix orgId
  • Loading branch information
iamfaran committed May 28, 2025
commit ae24fed566880f097ecb32ebb6d596320a97e8f4
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React, { useState, useEffect } from 'react';
import { Modal, Card, Row, Col, Typography, Divider, Spin, Alert } from 'antd';
import { CustomerServiceOutlined, CloudServerOutlined } from '@ant-design/icons';
import { useSelector } from 'react-redux';
import { Environment } from '../types/environment.types';
import { getEnvironmentDeploymentId } from '../services/environments.service';
import { HubspotModal } from '../../hubspotModal';
import { getUser } from 'redux/selectors/usersSelectors';

const { Title, Text } = Typography;

Expand All @@ -25,6 +27,7 @@ const ContactLowcoderModal: React.FC<ContactLowcoderModalProps> = ({
const [isLoading, setIsLoading] = useState(false);
const [error, setError] = useState<string | null>(null);
const [showHubspotModal, setShowHubspotModal] = useState(false);
const user = useSelector(getUser);

// Fetch deployment ID when modal opens
useEffect(() => {
Expand Down Expand Up @@ -77,7 +80,7 @@ const ContactLowcoderModal: React.FC<ContactLowcoderModalProps> = ({
<HubspotModal
open={showHubspotModal}
onClose={handleHubspotClose}
orgId={environment.environmentId}
orgId={user.currentOrgId}
deploymentIds={[deploymentId]}
/>
);
Expand Down