-
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
3030ed2
commit 0804ba7
Showing
4 changed files
with
47 additions
and
48 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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import Link from "@components/elements/link"; | ||
import {ChevronRightIcon} from "@heroicons/react/20/solid"; | ||
import {HtmlHTMLAttributes} from "react"; | ||
import {twMerge} from "tailwind-merge"; | ||
import { ArrowRightIcon } from "@heroicons/react/20/solid"; | ||
import { HtmlHTMLAttributes } from "react"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
type Props = HtmlHTMLAttributes<HTMLAnchorElement> & { | ||
/** | ||
* Link url. | ||
*/ | ||
href: string | ||
} | ||
href: string; | ||
}; | ||
|
||
const ActionLink = ({children, ...props}: Props) => { | ||
const ActionLink = ({ children, ...props }: Props) => { | ||
return ( | ||
<Link {...props} className={twMerge("relative", props.className)}> | ||
{children} | ||
<ChevronRightIcon height={25} className="ml-2 inline-block"/> | ||
<ArrowRightIcon width={20} className='ml-2 inline-block' /> | ||
</Link> | ||
) | ||
} | ||
export default ActionLink; | ||
); | ||
}; | ||
export default ActionLink; |
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