Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: import lib and code format #738

Merged
merged 10 commits into from
Dec 12, 2024
Merged

Conversation

besscroft
Copy link
Contributor

  • fix(style): mr page style modification.
  • feat: import zustand and a simple example that might be used.
  • import antd lib
  • code format by ECMA specification
  • update README.md

Variables that do not change should be declared using const, and declaring variables using var is not recommended. See: https://javascript.info/var

Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 11:52am

@besscroft
Copy link
Contributor Author

Modified and added configuration to support pnpm and docker builds.

@genedna genedna requested a review from Copilot December 12, 2024 11:27
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 8 out of 23 changed files in this pull request and generated 1 suggestion.

Files not reviewed (15)
  • docker/mono-ui-dockerfile: Language not supported
  • moon/.dockerignore: Language not supported
  • moon/.gitignore: Language not supported
  • moon/.npmrc: Language not supported
  • moon/package.json: Language not supported
  • moon/README.md: Evaluated as low risk
  • moon/next.config.js: Evaluated as low risk
  • moon/src/app/(dashboard)/application-layout.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/blob/[...path]/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/issue/[id]/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/issue/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/mr/[id]/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/mr/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/tree/[...path]/page.tsx: Evaluated as low risk

const treeStoreContext = useContext(TreeStoreContext)

if (!treeStoreContext) {
throw new Error(`useTreeStore must be use within TreeStoreProvider`)
Copy link
Preview

Copilot AI Dec 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message should be 'useTreeStore must be used within TreeStoreProvider'.

Suggested change
throw new Error(`useTreeStore must be use within TreeStoreProvider`)
throw new Error(`useTreeStore must be used within TreeStoreProvider`)

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@genedna genedna added this pull request to the merge queue Dec 12, 2024
Merged via the queue into web3infra-foundation:main with commit ea35ef1 Dec 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants