1- import { useState } from 'react'
1+ import { FC , useState } from 'react'
22
33import {
44 Button ,
@@ -27,7 +27,7 @@ export enum CloneRepoTabs {
2727 SSH = 'ssh'
2828}
2929
30- export const CloneRepoDialog : React . FC < CloneRepoDialogProps > = ( {
30+ export const CloneRepoDialog : FC < CloneRepoDialogProps > = ( {
3131 httpsUrl,
3232 sshUrl,
3333 handleCreateToken,
@@ -39,30 +39,30 @@ export const CloneRepoDialog: React.FC<CloneRepoDialogProps> = ({
3939 return (
4040 < DropdownMenu >
4141 < DropdownMenuTrigger asChild >
42- < Button >
43- < Icon name = "clone" />
44- { t ( 'views:repos.clone' , 'Clone' ) }
42+ < Button className = "gap-x-2 items-center pl-5 pr-2.5" >
43+ { t ( 'views:repos.cloneRepo' , 'Clone repository' ) }
44+ < Icon name = "chevron-down" size = { 12 } className = "text-icons-5" />
4545 </ Button >
4646 </ DropdownMenuTrigger >
47- < DropdownMenuContent className = "w-[328px] p-0" align = "end" >
48- < div className = "px-4 pt-4" >
49- < span className = "text-14 font-medium leading-none " > { t ( 'views:repos.cloneRepo' , 'Clone repository' ) } </ span >
47+ < DropdownMenuContent className = "w-[328px] p-0 shadow-2 " align = "end" >
48+ < div className = "px-4 pt-4 leading-none " >
49+ < span className = "text-14 font-medium inline-block " > { t ( 'views:repos.cloneRepo' , 'Clone repository' ) } </ span >
5050 </ div >
5151 < Tabs
52- className = "mt-2 "
52+ className = "mt-4 "
5353 variant = "branch"
5454 value = { currentTab }
5555 onValueChange = { val => setCurrentTab ( val as CloneRepoTabs ) }
5656 >
57- < TabsList >
57+ < TabsList className = "px-4" >
5858 < DropdownMenuItem
5959 className = "rounded-t-md p-0"
6060 onSelect = { e => {
6161 e . preventDefault ( )
6262 setCurrentTab ( CloneRepoTabs . HTTPS )
6363 } }
6464 >
65- < TabsTrigger className = "data-[state=active]:bg-background-2" value = { CloneRepoTabs . HTTPS } >
65+ < TabsTrigger className = "data-[state=active]:bg-background-2 px-4 " value = { CloneRepoTabs . HTTPS } >
6666 { t ( 'views:repos.cloneHttps' , 'HTTPS' ) }
6767 </ TabsTrigger >
6868 </ DropdownMenuItem >
@@ -74,7 +74,7 @@ export const CloneRepoDialog: React.FC<CloneRepoDialogProps> = ({
7474 } }
7575 >
7676 < TabsTrigger
77- className = "data-[state=active]:bg-background-2"
77+ className = "data-[state=active]:bg-background-2 px-4 "
7878 value = { CloneRepoTabs . SSH }
7979 onClick = { e => e . stopPropagation ( ) }
8080 >
@@ -83,20 +83,25 @@ export const CloneRepoDialog: React.FC<CloneRepoDialogProps> = ({
8383 </ DropdownMenuItem >
8484 </ TabsList >
8585 </ Tabs >
86- < div className = "px-5 py-4" >
86+ < div className = "p-4" >
87+ < div className = "flex items-center mb-2.5" >
88+ < span className = "text-foreground-2 leading-none inline-block" >
89+ { t ( 'views:repos.gitCloneUrl' , 'Git clone URL' ) }
90+ </ span >
91+ </ div >
8792 { currentTab === 'https' ? (
8893 < >
8994 < Input
95+ className = "text-foreground-1 py-px"
9096 id = "httpsUrl"
9197 readOnly
9298 value = { httpsUrl }
9399 variant = "extended"
94- className = "text-foreground-2"
95100 rightElementVariant = "default"
96101 rightElement = { < CopyButton name = { httpsUrl } /> }
97102 />
98103 < div className = "flex items-center mt-4" >
99- < span className = "text-foreground-4" >
104+ < span className = "text-foreground-4 leading-snug " >
100105 { t ( 'views:repos.generateCredential' , 'Please generate a clone credential if its your first time.' ) }
101106 </ span >
102107 </ div >
@@ -108,10 +113,10 @@ export const CloneRepoDialog: React.FC<CloneRepoDialogProps> = ({
108113 </ >
109114 ) : (
110115 < Input
116+ className = "text-foreground-1 py-px"
111117 id = "sshUrl"
112118 readOnly
113119 value = { sshUrl }
114- className = "text-tertiary-background"
115120 variant = "extended"
116121 rightElementVariant = "default"
117122 rightElement = { < CopyButton name = { sshUrl } /> }
0 commit comments