mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-04-29 02:52:20 -05:00
fix(github): repo and user mutations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user