-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { Variants } from 'kitbook'; | ||
import type Component from './Avatar.svelte'; | ||
import type { DeprecatedVariant } from 'kitbook' | ||
import type Component from './Avatar.svelte' | ||
|
||
export const variants: Variants<Component> = [ | ||
export const variants: DeprecatedVariant<Component>[] = [ | ||
{ | ||
name: 'image', | ||
props: { | ||
|
@@ -10,7 +10,7 @@ export const variants: Variants<Component> = [ | |
email: '[email protected]', | ||
photoURL: | ||
'https://lh5.googleusercontent.com/-qCXZXfIkRQ8/AAAAAAAAAAI/AAAAAAAAACc/wAdH8yns3QQ/photo.jpg', | ||
} | ||
}, | ||
}, | ||
}, | ||
{ | ||
|
@@ -21,31 +21,33 @@ export const variants: Variants<Component> = [ | |
email: '[email protected]', | ||
photoURL: | ||
'https://broken-link.broken.jpg', | ||
} | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'full name', | ||
props: { | ||
user: { | ||
displayName: 'John Smith', email: '[email protected]', | ||
} | ||
displayName: 'John Smith', | ||
email: '[email protected]', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'single name', | ||
props: { | ||
user: { | ||
displayName: 'John', email: '[email protected]', | ||
} | ||
displayName: 'John', | ||
email: '[email protected]', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'No display name, use email', | ||
props: { | ||
user: { | ||
// email: '[email protected]', | ||
} | ||
}, | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters