File tree 3 files changed +6
-3
lines changed
examples/infinity-scrolling
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ func NewInfinityListPage() (admin.Pager, error) {
13
13
return admin .NewIInfinityListPage (admin.IInfinityListPageConfig {
14
14
PageConfig : admin.PageConfig {
15
15
Icon : icon.Icon {
16
- Type : icon .Email ,
16
+ Type : icon .Empty ,
17
17
},
18
18
IsDefault : true ,
19
19
ID : "Home" ,
Original file line number Diff line number Diff line change 1
1
package icon
2
2
3
- type IconType uint
3
+ type IconType int
4
4
5
5
const (
6
+ Empty IconType = - 1
6
7
Notifications IconType = iota
7
8
AccountCircle
8
9
Dashboard
Original file line number Diff line number Diff line change @@ -1899,7 +1899,7 @@ function [[ .ID ]]InfinityList({ handleSetAppState }) {
1899
1899
{ alertMessage }
1900
1900
</ Alert >
1901
1901
</ Snackbar >
1902
- < Grid item xs = { 12 } sm = { 8 } md = { 5 } component = { Paper } elevation = { 6 } square >
1902
+ < Grid item xs = { 12 } sm = { 12 } md = { 12 } component = { Paper } elevation = { 6 } square >
1903
1903
< Box
1904
1904
sx = { {
1905
1905
my : 8 ,
@@ -1909,6 +1909,7 @@ function [[ .ID ]]InfinityList({ handleSetAppState }) {
1909
1909
alignItems : 'center' ,
1910
1910
} }
1911
1911
>
1912
+ [[ if gt .Icon.Type -1 ]]
1912
1913
< Avatar sx = { { m : 1 , bgcolor : 'secondary.main' } } >
1913
1914
[[ if eq .Icon.Type 7 ]]
1914
1915
< LockOutlinedIcon />
@@ -1917,6 +1918,7 @@ function [[ .ID ]]InfinityList({ handleSetAppState }) {
1917
1918
< EmailIcon />
1918
1919
[[ end ]]
1919
1920
</ Avatar >
1921
+ [[ end ]]
1920
1922
< Typography component = "h1" variant = "h5" >
1921
1923
[[ .Form.Title ]]
1922
1924
</ Typography >
You can’t perform that action at this time.
0 commit comments