diff --git a/src/components/DomainSetupForm.jsx b/src/components/DomainSetupForm-old.jsx similarity index 100% rename from src/components/DomainSetupForm.jsx rename to src/components/DomainSetupForm-old.jsx diff --git a/src/components/DomainSetupForm/DeploymentOptions/AppDeployment.jsx b/src/components/DomainSetupForm/DeploymentOptions/AppDeployment.jsx new file mode 100644 index 0000000..c6fd7ae --- /dev/null +++ b/src/components/DomainSetupForm/DeploymentOptions/AppDeployment.jsx @@ -0,0 +1,30 @@ +import React from 'react'; + +/** + * Component for app deployment options + * @param {Object} props - Component props + * @param {string} props.appType - Selected app type + * @param {Function} props.onAppTypeChange - Handler for app type change + * @returns {JSX.Element} - Rendered component + */ +const AppDeployment = ({ appType, onAppTypeChange }) => { + return ( +
+ + +
+ ); +}; + +export default AppDeployment; \ No newline at end of file diff --git a/src/components/DomainSetupForm/DeploymentOptions/SourceDeployment.jsx b/src/components/DomainSetupForm/DeploymentOptions/SourceDeployment.jsx new file mode 100644 index 0000000..bc2fbc0 --- /dev/null +++ b/src/components/DomainSetupForm/DeploymentOptions/SourceDeployment.jsx @@ -0,0 +1,79 @@ +import React from 'react'; + +/** + * Component for source code deployment options + * @param {Object} props - Component props + * @param {string} props.sourceType - Source type (public/private) + * @param {string} props.repoUrl - Repository URL + * @param {string} props.deploymentKey - Deployment key for private repos + * @param {Function} props.onSourceTypeChange - Handler for source type change + * @param {Function} props.onRepoUrlChange - Handler for repo URL change + * @param {Function} props.onDeploymentKeyChange - Handler for deployment key change + * @param {Function} props.showToast - Function to show toast notifications + * @returns {JSX.Element} - Rendered component + */ +const SourceDeployment = ({ + sourceType, + repoUrl, + deploymentKey, + onSourceTypeChange, + onRepoUrlChange, + onDeploymentKeyChange, + showToast + }) => { + return ( +
+
+ + +
+ +
+ + +
+ + {sourceType === 'private' && ( +
+
+ + +
+