|
|
@@ -143,12 +143,24 @@ extension DataTable {
|
|
|
.navigationTitle("History")
|
|
|
.navigationBarTitleDisplayMode(.large)
|
|
|
.toolbar {
|
|
|
- ToolbarItem(placement: .topBarTrailing) {
|
|
|
+ ToolbarItem(placement: .topBarLeading, content: {
|
|
|
+ Button(
|
|
|
+ action: { state.showModal(for: .statistics) },
|
|
|
+ label: {
|
|
|
+ HStack {
|
|
|
+ Text("Statistics")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }
|
|
|
+ .toolbar {
|
|
|
+ ToolbarItem(placement: .topBarTrailing, content: {
|
|
|
addButton({
|
|
|
showManualGlucose = true
|
|
|
state.manualGlucose = 0
|
|
|
})
|
|
|
- }
|
|
|
+ })
|
|
|
}
|
|
|
.sheet(isPresented: $showManualGlucose) {
|
|
|
addGlucoseView()
|