Skip to content

Commit

Permalink
Merge pull request #681 from bcgov/dev
Browse files Browse the repository at this point in the history
Feature/shared idp cypress (#680)
  • Loading branch information
ikethecoder committed Jan 4, 2023
2 parents cbcac10 + ea2074d commit 67b941a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nextapp/components/login-buttons/login-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useRouter } from 'next/router';
import { uid } from 'react-uid';
import { FaGithub } from 'react-icons/fa';
import { makeRedirectUrl } from '@/shared/services/auth';
import kebabCase from 'lodash/kebabCase';

function buildUrl(hint: string, path: string) {
const redirectPath = makeRedirectUrl(path);
Expand Down Expand Up @@ -82,6 +83,7 @@ const LoginButtons: React.FC<LoginButtonsProps> = ({
href={href}
leftIcon={icon}
bgColor={bgColor}
data-testid={`login-with-${kebabCase(button.text)}`}
>
Login with {button.text}
</Button>
Expand All @@ -103,6 +105,7 @@ const LoginButtons: React.FC<LoginButtonsProps> = ({
w="100%"
leftIcon={icon}
bgColor={bgColor}
data-testid={`login-with-${kebabCase(button.text)}`}
>
Login with {button.text}
</Button>
Expand Down

0 comments on commit 67b941a

Please sign in to comment.