Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi authored Oct 31, 2023
2 parents 1824655 + eda57dd commit a7f1181
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
title: ""
labels: bug
assignees: ""
---
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEAT]"
title: ""
labels: enhancement
assignees: ""
---
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ on:
push:
branches:
- main
pull_request:
pull_request_target:
branches:
- main
paths-ignore:
- ".vscode/**"
- "*.md"

env:
# Database
Expand All @@ -28,6 +33,7 @@ jobs:
main:
name: CI
runs-on: ubuntu-latest
environment: CI
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
9 changes: 7 additions & 2 deletions src/app/(dashboard)/_components/side-menu-modules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const CreateModulePopover = () => {

const utils = trpc.useUtils();

const { mutateAsync } = trpc.module.post.create.useMutation({
const { mutateAsync, isLoading } = trpc.module.post.create.useMutation({
onSuccess: async () => {
await utils.module.get.all.invalidate();
},
Expand Down Expand Up @@ -362,7 +362,12 @@ const CreateModulePopover = () => {
<span className="text-default-500">Color</span>
</Button>

<Button type="submit" color="primary" className="font-semibold">
<Button
isLoading={isLoading}
type="submit"
color="primary"
className="font-semibold"
>
Create module
</Button>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/app/(dashboard)/_components/side-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const DashboardSideMenu = async () => {
<ul>
<li>
<FeedbackModal
email={user?.emailAddresses[0]!.emailAddress ?? ""}
email={user?.emailAddresses[0]?.emailAddress ?? ""}
/>
</li>
<li>
Expand Down

0 comments on commit a7f1181

Please sign in to comment.