Skip to content

Commit

Permalink
Merge pull request #413 from edx/kselinka_zero_state_fix
Browse files Browse the repository at this point in the history
fix capitalization on invite learners button and make sure the zero s…
  • Loading branch information
kellmarie committed Dec 10, 2020
2 parents 6500835 + 891c72a commit 8ae7eda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/subscriptions/AddUsersButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const AddUsersButton = ({
onClose,
}) => (
<ActionButtonWithModal
buttonLabel="Invite Learners"
buttonLabel="Invite learners"
buttonClassName="add-users-btn"
variant="primary"
renderModal={({ closeModal }) => (
Expand All @@ -20,7 +20,7 @@ const AddUsersButton = ({
details,
}) => (
<AddUsersModal
title="Invite Learners"
title="Invite learners"
availableSubscriptionCount={overview.unassigned}
subscriptionUUID={details.uuid}
onSuccess={onSuccess}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const store = mockStore({
enterpriseSlug: 'test-enterprise',
enterpriseId: 'test-enterprise-id',
enableSubscriptionManagementScreen: true,
enableCodeManagementScreen: true,
},
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/subscriptions/TabContentTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function TabContentTable({ enterpriseSlug }) {
))}
{!isLoading && !errors && (
<>
{activeTab === TAB_ALL_USERS && tableData?.length === 0 ? (
{activeTab === TAB_ALL_USERS && tableData?.length === 0 && !searchQuery ? (
<SubscriptionZeroStateMessaging />
) : (
<>
Expand Down

0 comments on commit 8ae7eda

Please sign in to comment.