Skip to content

Commit

Permalink
fix: add loading feedback when creating contributor insight (#3947)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Taylor <[email protected]>
  • Loading branch information
Dun-sin and nickytonline authored Aug 15, 2024
1 parent 7828b52 commit 7f94272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ export default function ContributorInsightEditPage({
className="flex gap-2.5 items-center cursor-pointer w-min sm:mt-0 self-end"
disabled={loading}
onClick={updateInsight}
loading={loading}
loadingText={"Updating insight"}
>
Update Insight
</Button>
Expand Down
2 changes: 2 additions & 0 deletions pages/workspaces/[workspaceId]/contributor-insights/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ export default function CreateContributorInsightPage({
variant="primary"
className="flex gap-2.5 items-center cursor-pointer w-min mt-2 sm:mt-0 self-end"
disabled={loading}
loading={loading}
loadingText={"Creating insight"}
>
Create Insight
</Button>
Expand Down

0 comments on commit 7f94272

Please sign in to comment.