forked from harness/canary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf3f4f1
commit 05962aa
Showing
18 changed files
with
337 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { CreateProjectPage } from '@harnessio/ui/views' | ||
|
||
import { useTranslationStore } from '../i18n/stores/i18n-store' | ||
|
||
export const CreateProject = () => { | ||
const isLoading = false | ||
const error = null | ||
|
||
return ( | ||
<CreateProjectPage | ||
isLoading={isLoading} | ||
error={error?.message} | ||
useTranslationStore={useTranslationStore} | ||
onFormSubmit={() => {}} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -447,4 +447,4 @@ | |
"newUserButton": "New user", | ||
"usersHeader": "Users" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -439,4 +439,4 @@ | |
"token": "Token", | ||
"status": "Status" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -441,4 +441,4 @@ | |
"newUserButton": "New user", | ||
"usersHeader": "Users" | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/ui/src/components/language-selector/language-dialog.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
import { Link, type LinkProps } from 'react-router-dom' | ||
|
||
import { cn } from '@utils/cn' | ||
import { cva, VariantProps } from 'class-variance-authority' | ||
|
||
type StyledLinkProps = LinkProps & React.RefAttributes<HTMLAnchorElement> | ||
const linkVariants = cva( | ||
'whitespace-nowrap underline decoration-transparent decoration-1 underline-offset-4 transition-colors duration-200', | ||
{ | ||
variants: { | ||
variant: { | ||
default: 'text-foreground-1 hover:decoration-foreground-1', | ||
accent: 'text-foreground-accent hover:decoration-foreground-accent' | ||
} | ||
} | ||
} | ||
) | ||
|
||
export function StyledLink({ className, ...props }: StyledLinkProps) { | ||
return ( | ||
<Link | ||
className={cn( | ||
'text-foreground-accent hover:decoration-foreground-accent underline decoration-transparent underline-offset-4 transition-colors duration-200', | ||
className | ||
)} | ||
{...props} | ||
/> | ||
) | ||
type StyledLinkProps = LinkProps & React.RefAttributes<HTMLAnchorElement> & VariantProps<typeof linkVariants> | ||
|
||
export const StyledLink = ({ className, variant, ...props }: StyledLinkProps) => { | ||
return <Link className={cn(linkVariants({ variant }), className)} {...props} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,10 @@ | ||
import { Link } from 'react-router-dom' | ||
|
||
import { Text } from '@/components' | ||
import { StyledLink, Text } from '@/components' | ||
|
||
export function Agreements() { | ||
return ( | ||
<Text className="relative z-10 mt-auto leading-tight" size={0} color="foreground-5" align="center"> | ||
By joining, you agree to{' '} | ||
<Link | ||
className="whitespace-nowrap text-foreground-1 underline decoration-transparent decoration-1 underline-offset-4 transition-colors duration-200 hover:decoration-foreground-1" | ||
to="https://harness.io/privacy" | ||
> | ||
Terms of Service | ||
</Link>{' '} | ||
and | ||
<Link | ||
className="whitespace-nowrap text-foreground-1 underline decoration-transparent decoration-1 underline-offset-4 transition-colors duration-200 hover:decoration-foreground-1" | ||
to="https://harness.io/subscriptionterms" | ||
> | ||
Privacy Policy | ||
</Link> | ||
By joining, you agree to <StyledLink to="https://harness.io/privacy">Terms of Service</StyledLink> and | ||
<StyledLink to="https://harness.io/subscriptionterms">Privacy Policy</StyledLink> | ||
</Text> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.