mirror of https://github.com/coder/coder.git
67 lines
1.2 KiB
TypeScript
67 lines
1.2 KiB
TypeScript
import { ExternalAuth } from "./ExternalAuth";
|
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
|
|
const meta: Meta<typeof ExternalAuth> = {
|
|
title: "components/ExternalAuth",
|
|
component: ExternalAuth,
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof ExternalAuth>;
|
|
|
|
export const GithubNotAuthenticated: Story = {
|
|
args: {
|
|
type: "github",
|
|
authenticated: false,
|
|
},
|
|
};
|
|
|
|
export const GithubAuthenticated: Story = {
|
|
args: {
|
|
type: "github",
|
|
authenticated: true,
|
|
},
|
|
};
|
|
|
|
export const GitlabNotAuthenticated: Story = {
|
|
args: {
|
|
type: "gitlab",
|
|
authenticated: false,
|
|
},
|
|
};
|
|
|
|
export const GitlabAuthenticated: Story = {
|
|
args: {
|
|
type: "gitlab",
|
|
authenticated: true,
|
|
},
|
|
};
|
|
|
|
export const AzureDevOpsNotAuthenticated: Story = {
|
|
args: {
|
|
type: "azure-devops",
|
|
authenticated: false,
|
|
},
|
|
};
|
|
|
|
export const AzureDevOpsAuthenticated: Story = {
|
|
args: {
|
|
type: "azure-devops",
|
|
authenticated: true,
|
|
},
|
|
};
|
|
|
|
export const BitbucketNotAuthenticated: Story = {
|
|
args: {
|
|
type: "bitbucket",
|
|
authenticated: false,
|
|
},
|
|
};
|
|
|
|
export const BitbucketAuthenticated: Story = {
|
|
args: {
|
|
type: "bitbucket",
|
|
authenticated: true,
|
|
},
|
|
};
|