This commit is contained in:
2025-12-11 16:13:22 -06:00
parent 1570185792
commit 173f6ccf6d
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import React from 'react';
import { Card, CardContent, Typography, Button, Box } from '@mui/material';
const MLSPublishingCard: React.FC = () => {
return (
<Card>
<CardContent>
<Typography variant="h6" gutterBottom>
Publish to MLS
</Typography>
<Typography variant="body2" color="text.secondary" paragraph>
Publish your property to the MLS. To sites like zillow and redfin.
</Typography>
<Box sx={{ mt: 2 }}>
<Button variant="contained" color="primary" fullWidth>
Publish Now
</Button>
</Box>
</CardContent>
</Card>
);
};
export default MLSPublishingCard;

View File

@@ -11,6 +11,7 @@ interface FeatureConfig {
// UI Features // UI Features
enableFloatingChatButton: boolean; enableFloatingChatButton: boolean;
enableMLSPublishing: boolean;
// API Configuration // API Configuration
apiUrl: string; apiUrl: string;
@@ -32,6 +33,7 @@ const getFeatureConfig = (): FeatureConfig => {
enableRealEstateAgentRegistration: false, enableRealEstateAgentRegistration: false,
enableRegistration: false, enableRegistration: false,
enableFloatingChatButton: false, enableFloatingChatButton: false,
enableMLSPublishing: false,
apiUrl: 'https://backend.ditchtheagent.com/api/', apiUrl: 'https://backend.ditchtheagent.com/api/',
useLiveData: true, useLiveData: true,
}; };
@@ -44,6 +46,7 @@ const getFeatureConfig = (): FeatureConfig => {
enableRealEstateAgentRegistration: true, enableRealEstateAgentRegistration: true,
enableRegistration: true, enableRegistration: true,
enableFloatingChatButton: true, enableFloatingChatButton: true,
enableMLSPublishing: true,
apiUrl: 'https://beta.backend.ditchtheagent.com/api/', apiUrl: 'https://beta.backend.ditchtheagent.com/api/',
useLiveData: true, useLiveData: true,
}; };
@@ -55,6 +58,7 @@ const getFeatureConfig = (): FeatureConfig => {
enableRealEstateAgentRegistration: true, enableRealEstateAgentRegistration: true,
enableRegistration: true, enableRegistration: true,
enableFloatingChatButton: true, enableFloatingChatButton: true,
enableMLSPublishing: true,
apiUrl: 'http://127.0.0.1:8010/api/', apiUrl: 'http://127.0.0.1:8010/api/',
useLiveData: false, useLiveData: false,
}; };

View File

@@ -25,6 +25,8 @@ import { axiosInstance } from '../../axiosApi';
import SchoolCard from 'components/sections/dashboard/Home/Property/SchoolCard'; import SchoolCard from 'components/sections/dashboard/Home/Property/SchoolCard';
import { AccountContext } from 'contexts/AccountContext'; import { AccountContext } from 'contexts/AccountContext';
import SellerInformationCard from 'components/sections/dashboard/Home/Property/SellerInformationCard'; import SellerInformationCard from 'components/sections/dashboard/Home/Property/SellerInformationCard';
import MLSPublishingCard from 'components/sections/dashboard/Home/Property/MLSPublishingCard';
import { features } from 'config/features';
const PropertyDetailPage: React.FC = () => { const PropertyDetailPage: React.FC = () => {
// In a real app, you'd get propertyId from URL params or a global state // In a real app, you'd get propertyId from URL params or a global state
@@ -296,6 +298,11 @@ const PropertyDetailPage: React.FC = () => {
<Grid size={{ xs: 12 }}> <Grid size={{ xs: 12 }}>
<EstimatedMonthlyCostCard price={parseFloat(priceForAnalysis)} /> <EstimatedMonthlyCostCard price={parseFloat(priceForAnalysis)} />
</Grid> </Grid>
{isOwnerOfProperty && features.enableMLSPublishing && (
<Grid size={{ xs: 12 }}>
<MLSPublishingCard />
</Grid>
)}
{!isOwnerOfProperty && ( {!isOwnerOfProperty && (
<> <>
<Grid size={{ xs: 12 }}> <Grid size={{ xs: 12 }}>