зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7046c056aa
Коммит
7cecbb4394
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче