@@ -38,19 +38,26 @@ interface CreateOrEditProjectBodyProps {
3838const customStyles = {
3939 control : ( provided ) => ( {
4040 ...provided ,
41+ borderRadius : '0.5rem' ,
4142 backgroundColor : '#1e1e1e' ,
4243 color : '#ffffff' ,
4344 borderColor : '#333333' ,
45+ boxShadow : 'none' ,
4446 '&:hover' : {
4547 color : '#ffffff' ,
46- borderColor : '#4a4a4a' ,
48+ borderColor : '#333333' ,
49+ boxShadow : 'none' ,
4750 } ,
4851 } ) ,
52+ indicatorSeparator : ( provided ) => ( { } ) ,
4953 menu : ( provided ) => ( {
5054 ...provided ,
5155 backgroundColor : '#1e1e1e' ,
5256 } ) ,
53- input : ( styles ) => ( { ...styles , color : '#ffffff' } ) ,
57+ input : ( styles ) => ( {
58+ ...styles ,
59+ color : '#ffffff' ,
60+ } ) ,
5461 option : ( provided , state ) => ( {
5562 ...provided ,
5663 backgroundColor : state . isFocused ? '#333333' : '#1e1e1e' ,
@@ -98,18 +105,14 @@ export default function CreateOrEditProjectBody({
98105 async function redirectToGithubIntegration ( ) {
99106 setIntegrationLoading ( true ) ;
100107 try {
101- const interval = setInterval (
102- async ( ) => {
103- const gitIntegrated = await isGithubConnected ( ) ;
104- if ( gitIntegrated ) {
105- setIsExternalGitIntegration ( true ) ;
106- setIntegrationLoading ( false ) ;
107- clearInterval ( interval ) ;
108- }
109- } ,
110- 1000 ,
111- 1000 ,
112- ) ;
108+ const interval = setInterval ( async ( ) => {
109+ const gitIntegrated = await isGithubConnected ( ) ;
110+ if ( gitIntegrated ) {
111+ setIsExternalGitIntegration ( true ) ;
112+ setIntegrationLoading ( false ) ;
113+ clearInterval ( interval ) ;
114+ }
115+ } , 1000 ) ;
113116 window . open ( `${ API_BASE_URL } /integrations/github/authorize` , '_blank' ) ;
114117 } catch ( error ) {
115118 console . error ( 'Error: ' , error ) ;
0 commit comments