Skip to content

Commit 22ea1d9

Browse files
Refactor campaign integration settings
Remove redundant dialog for plugin integration. The integration settings, including the toggle for code or plugin integration, will now be directly within the campaign settings dialog, under an "Integration" tab. This aligns with the user's feedback for a more logical structure.
1 parent a89c384 commit 22ea1d9

3 files changed

Lines changed: 5 additions & 24 deletions

File tree

src/components/campaign-integration/CodeIntegration.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,7 @@ export const CodeIntegration = ({ campaign }: CodeIntegrationProps) => {
4242

4343
return (
4444
<div className="space-y-8">
45-
<div className="space-y-2">
46-
<h3 className="text-lg font-semibold text-slate-900">Scripts d'intégration</h3>
47-
<p className="text-slate-600">
48-
Copiez et collez ces scripts sur votre site marchand pour activer le tracking d'affiliation.
49-
</p>
50-
</div>
51-
52-
<TrackingScriptSection
45+
<TrackingScriptSection
5346
trackingScript={trackingScript}
5447
copiedItems={copiedItems}
5548
setCopiedItems={setCopiedItems}

src/components/campaign-integration/IntegrationTypeSelector.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ interface IntegrationTypeSelectorProps {
1010

1111
export const IntegrationTypeSelector = ({ activeType, onTypeChange, children }: IntegrationTypeSelectorProps) => {
1212
return (
13-
<Card>
14-
<CardHeader>
15-
<CardTitle>Type d'intégration</CardTitle>
16-
</CardHeader>
17-
<CardContent>
18-
<Tabs value={activeType} onValueChange={(value) => onTypeChange(value as 'code' | 'plugin')}>
19-
<TabsList className="grid w-full grid-cols-2 mb-6">
13+
<div>
14+
<Tabs value={activeType} onValueChange={(value) => onTypeChange(value as 'code' | 'plugin')}>
15+
<TabsList className="grid w-full grid-cols-2 mb-6">
2016
<TabsTrigger value="code" className="flex items-center gap-2">
2117
<Code className="h-4 w-4" />
2218
Intégration par code
@@ -29,7 +25,6 @@ export const IntegrationTypeSelector = ({ activeType, onTypeChange, children }:
2925

3026
{children}
3127
</Tabs>
32-
</CardContent>
33-
</Card>
28+
</div>
3429
);
3530
};

src/components/campaign-integration/PluginIntegration.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,6 @@ export const PluginIntegration: React.FC<PluginIntegrationProps> = ({ campaignId
187187

188188
return (
189189
<div className="space-y-6">
190-
<div className="space-y-2">
191-
<h3 className="text-lg font-semibold text-slate-900">Configuration des plugins</h3>
192-
<p className="text-slate-600">
193-
Configurez RefSpring directement sur WordPress et Shopify sans code
194-
</p>
195-
</div>
196-
197190
<div className="flex justify-end">
198191
<Button onClick={generateApiKey} disabled={isLoading} variant="outline">
199192
<Key className="h-4 w-4 mr-2" />

0 commit comments

Comments
 (0)