Skip to content

Commit

Permalink
fix capitalization on invite learners button and make sure the zero s…
Browse files Browse the repository at this point in the history
…tate messaging doesn't display when a search is made
  • Loading branch information
Kellie Selinka committed Dec 10, 2020
1 parent 2c803a0 commit 891c72a
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 891c72a

Please sign in to comment.