Bug 1832889 - Add a story for the Vulnerable Password Alert component. r=credential-management-reviewers,mtigley,sgalich

Differential Revision: https://phabricator.services.mozilla.com/D180269
This commit is contained in:
Sidharth Sachdev 2023-07-10 14:08:05 +00:00
Родитель 7046c056aa
Коммит 7cecbb4394
1 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -31,7 +31,7 @@ export const BasicLoginAlert = ({ variant, icon }) => {
BasicLoginAlert.argTypes = {
variant: {
options: ["info", "error"],
options: ["info", "error", "warning"],
control: { type: "radio" },
defaultValue: "info",
},
@ -48,6 +48,17 @@ BasicLoginAlert.argTypes = {
},
};
export const VulnerablePasswordAlert = ({ hostname }) =>
html`
<login-vulnerable-password-alert
.hostname=${hostname}
></login-vulnerable-password-alert>
`;
VulnerablePasswordAlert.args = {
hostname: "https://www.example.com",
};
export const LoginBreachAlert = ({ date, hostname }) =>
html`
<login-breach-alert