@@ -3,6 +3,7 @@ import { FC, useState } from "react";
33import { isEmpty } from "lodash-es" ;
44import Link from "next/link" ;
55import { useForm } from "react-hook-form" ;
6+ import { Monitor } from "lucide-react" ;
67// plane internal packages
78import { API_BASE_URL } from "@plane/constants" ;
89import { Button , getButtonStyling } from "@plane/propel/button" ;
@@ -91,7 +92,7 @@ export const InstanceGoogleConfigForm: FC<Props> = (props) => {
9192 } ,
9293 ] ;
9394
94- const GOOGLE_SERVICE_DETAILS : TCopyField [ ] = [
95+ const GOOGLE_COMMON_SERVICE_DETAILS : TCopyField [ ] = [
9596 {
9697 key : "Origin_URL" ,
9798 label : "Origin URL" ,
@@ -111,6 +112,9 @@ export const InstanceGoogleConfigForm: FC<Props> = (props) => {
111112 </ p >
112113 ) ,
113114 } ,
115+ ] ;
116+
117+ const GOOGLE_SERVICE_DETAILS : TCopyField [ ] = [
114118 {
115119 key : "Callback_URI" ,
116120 label : "Callback URI" ,
@@ -196,12 +200,29 @@ export const InstanceGoogleConfigForm: FC<Props> = (props) => {
196200 </ div >
197201 </ div >
198202 </ div >
199- < div className = "col-span-2 md:col-span-1" >
200- < div className = "flex flex-col gap-y-4 px-6 pt-1.5 pb-4 bg-custom-background-80/60 rounded-lg" >
201- < div className = "pt-2 text-xl font-medium" > Plane-provided details for Google</ div >
202- { GOOGLE_SERVICE_DETAILS . map ( ( field ) => (
203- < CopyField key = { field . key } label = { field . label } url = { field . url } description = { field . description } />
204- ) ) }
203+ < div className = "col-span-2 md:col-span-1 flex flex-col gap-y-6" >
204+ < div className = "pt-2 text-xl font-medium" > Plane-provided details for Google</ div >
205+
206+ < div className = "flex flex-col gap-y-4" >
207+ { /* common service details */ }
208+ < div className = "flex flex-col gap-y-4 px-6 py-4 bg-custom-background-80 rounded-lg" >
209+ { GOOGLE_COMMON_SERVICE_DETAILS . map ( ( field ) => (
210+ < CopyField key = { field . key } label = { field . label } url = { field . url } description = { field . description } />
211+ ) ) }
212+ </ div >
213+
214+ { /* web service details */ }
215+ < div className = "flex flex-col rounded-lg overflow-hidden" >
216+ < div className = "px-6 py-3 bg-custom-background-80/60 font-medium text-xs uppercase flex items-center gap-x-3 text-custom-text-200" >
217+ < Monitor className = "w-3 h-3" />
218+ Web
219+ </ div >
220+ < div className = "px-6 py-4 flex flex-col gap-y-4 bg-custom-background-80" >
221+ { GOOGLE_SERVICE_DETAILS . map ( ( field ) => (
222+ < CopyField key = { field . key } label = { field . label } url = { field . url } description = { field . description } />
223+ ) ) }
224+ </ div >
225+ </ div >
205226 </ div >
206227 </ div >
207228 </ div >
0 commit comments