Welcome to mirror list, hosted at ThFree Co, Russian Federation.

state.js « store « subscriptions « jira_connect « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82a8517b51188b767efe2c28d69c3b01038a4270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export default function createState({
  subscriptions = [],
  subscriptionsLoading = false,
  currentUser = null,
} = {}) {
  return {
    alert: undefined,

    subscriptions,
    subscriptionsLoading,
    subscriptionsError: false,

    addSubscriptionLoading: false,
    addSubscriptionError: false,

    currentUser,
    currentUserError: null,

    accessToken: null,
  };
}