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 55b8c3e6fb
commit 50c698abf8
1 changed files with 3 additions and 2 deletions

View File

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