passes in dummy user.name data to Avatar component

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-05 11:00:33 +02:00
parent 40a3b7324b
commit b837474bd8
1 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
SideNavigationItem as Item,
} from "@budibase/bbui"
let orgName, orgLogo, onBoardingProgress
let orgName, orgLogo, onBoardingProgress, user
async function getInfo() {
// fetch orgInfo
@ -18,6 +18,7 @@
// set onBoardingProgress
onBoardingProgress = 20
user = { name: "John Doe" }
}
onMount(getInfo)
@ -54,7 +55,7 @@
<div class="toolbar">
<Search />
<div class="avatar">
<Avatar url="https://via.placeholder.com/150" />
<Avatar size="XL" name="John Doe" />
</div>
</div>
<div class="content">