@@ -70,6 +70,7 @@ const ChangeProjectDomain = ({
7070} : ChangeProjectDomainProps ) => {
7171 const id = useId ( ) ;
7272 const publishedOrigin = useStore ( $publishedOrigin ) ;
73+ const hasProPlan = useStore ( $userPlanFeatures ) . hasProPlan ;
7374
7475 const [ domain , setDomain ] = useState ( project . domain ) ;
7576 const [ error , setError ] = useState < string > ( ) ;
@@ -111,15 +112,19 @@ const ChangeProjectDomain = ({
111112 status : "PENDING" as const ,
112113 } ;
113114
115+ const hideDomainCheckbox = project . domainsVirtual . length === 0 && hasProPlan ;
116+
114117 return (
115118 < CollapsibleDomainSection
116119 title = { new URL ( publishedOrigin ) . host }
117120 prefix = {
118- < DomainCheckbox
119- defaultChecked = { project . latestBuildVirtual ?. domain === domain }
120- buildId = { project . latestBuildVirtual ?. buildId }
121- domain = { domain }
122- > </ DomainCheckbox >
121+ hideDomainCheckbox ? null : (
122+ < DomainCheckbox
123+ defaultChecked = { project . latestBuildVirtual ?. domain === domain }
124+ buildId = { project . latestBuildVirtual ?. buildId }
125+ domain = { domain }
126+ > </ DomainCheckbox >
127+ )
123128 }
124129 suffix = {
125130 < Grid flow = "column" align = "center" >
@@ -521,7 +526,7 @@ const Content = (props: {
521526 < Text variant = "regularBold" inline >
522527 Upgrade to a Pro account
523528 </ Text > { " " }
524- to add unlimited domains.
529+ to add unlimited domains and publish to each domain individually .
525530 </ Text >
526531 < Link
527532 className = { buttonStyle ( { color : "gradient" } ) }
0 commit comments