chore(Storybook): Add label to Figma preview window when empty

This commit is contained in:
Michał Cieślak 2023-10-11 10:10:42 +02:00 committed by Michał
parent fd5e8127c7
commit a567910f3b
1 changed files with 10 additions and 0 deletions

View File

@ -36,6 +36,16 @@ ApplicationWindow {
topSwipeView.incrementCurrentIndex()
}
}
Label {
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
visible: grid.count === 0
text: "To add a design, put a link to Figma directly in the Storybook's page code as a comment."
}
}
Item {