summaryrefslogtreecommitdiff
path: root/schist_desktop_gui/src/gui/components/buckets_view.rs
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2025-08-25 16:35:45 +0000
committerjoeac <me@joeac.net>2025-08-25 16:35:45 +0000
commitfe85652e4d3e8906824baddaafd05d19105579b8 (patch)
tree31b56e31cbf289a34ec1d6707becf3c60933b56f /schist_desktop_gui/src/gui/components/buckets_view.rs
parentd082a30de6a0cbd1fbe2ab5a4316db0891004129 (diff)
task-072
Co-authored-by: Joe Carstairs <jcarstairs@scottlogic.com> Reviewed-on: https://git.joeac.net/joeac/schist/pulls/3 Co-authored-by: Joe Carstairs <me@joeac.net> Co-committed-by: Joe Carstairs <me@joeac.net>
Diffstat (limited to 'schist_desktop_gui/src/gui/components/buckets_view.rs')
-rw-r--r--schist_desktop_gui/src/gui/components/buckets_view.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/schist_desktop_gui/src/gui/components/buckets_view.rs b/schist_desktop_gui/src/gui/components/buckets_view.rs
index bb4dbb4..e513a35 100644
--- a/schist_desktop_gui/src/gui/components/buckets_view.rs
+++ b/schist_desktop_gui/src/gui/components/buckets_view.rs
@@ -6,7 +6,7 @@ use iced::{
use schist_models::Bucket;
use crate::{
- gui::components::{navigation, BucketNameAndBalance, Navigation},
+ gui::components::{navigation, BucketNameAndBalance, Navigation, Text},
style::SPACING_LG,
traits::{Component, Viewable},
};
@@ -53,7 +53,7 @@ impl<'a> Viewable<'a, Message> for BucketsView {
Message: 'a,
{
let navigation = self.navigation.view().map(Message::NavigationMessage);
- let main_content = column![iced::widget::text(self.greeting.clone())];
+ let main_content = column![Text::default(&self.greeting).as_element()];
row![
Container::new(navigation).width(Length::FillPortion(1)),
Container::new(main_content).width(Length::FillPortion(3)),