fix(github): repo and user mutations

This commit is contained in:
Rongjian Zhang
2021-01-31 15:49:28 +08:00
parent 31c43eebc8
commit 10477a7071
10 changed files with 93 additions and 100 deletions

View File

@@ -21,14 +21,15 @@ class UserHeader extends StatelessWidget {
@required this.bio,
bool isViewer = false,
List<Widget> rightWidgets,
}) : this.rightWidgets = [
...(rightWidgets ?? []),
}) : rightWidgets = [
if (isViewer)
MutationButton(
active: false,
text: 'Switch accounts',
url: '/login',
)
else
...(rightWidgets ?? []),
];
@override