mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[CL-707] Migrate CL codebase to signals (#15340)
This commit is contained in:
@@ -19,17 +19,7 @@ class MockPlatformUtilsService implements Partial<PlatformUtilsService> {
|
||||
getClientType = () => ClientType.Web;
|
||||
}
|
||||
|
||||
type StoryArgs = Pick<
|
||||
AnonLayoutComponent,
|
||||
| "title"
|
||||
| "subtitle"
|
||||
| "showReadonlyHostname"
|
||||
| "hideCardWrapper"
|
||||
| "hideIcon"
|
||||
| "hideLogo"
|
||||
| "hideFooter"
|
||||
| "maxWidth"
|
||||
> & {
|
||||
type StoryArgs = AnonLayoutComponent & {
|
||||
contentLength: "normal" | "long" | "thin";
|
||||
showSecondary: boolean;
|
||||
useDefaultIcon: boolean;
|
||||
@@ -72,15 +62,14 @@ export default {
|
||||
],
|
||||
}),
|
||||
],
|
||||
|
||||
render: (args: StoryArgs) => {
|
||||
render: (args) => {
|
||||
const { useDefaultIcon, icon, ...rest } = args;
|
||||
return {
|
||||
props: {
|
||||
...rest,
|
||||
icon: useDefaultIcon ? null : icon,
|
||||
},
|
||||
template: `
|
||||
template: /*html*/ `
|
||||
<auth-anon-layout
|
||||
[title]="title"
|
||||
[subtitle]="subtitle"
|
||||
@@ -160,7 +149,7 @@ export default {
|
||||
contentLength: "normal",
|
||||
showSecondary: false,
|
||||
},
|
||||
} as Meta<StoryArgs>;
|
||||
} satisfies Meta<StoryArgs>;
|
||||
|
||||
type Story = StoryObj<StoryArgs>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user