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

chore: update and tweak community page #1950

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

jobenjada
Copy link
Member

  1. added contributor images:
image
  1. updated content
  2. added CTA at bottom

Copy link

vercel bot commented Jan 23, 2024

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

2 Ignored Deployments
Name Status Preview Updated (UTC)
formbricks-cloud ⬜️ Ignored (Inspect) Jan 23, 2024 9:02pm
formbricks-com ⬜️ Ignored (Inspect) Jan 23, 2024 9:02pm

Copy link
Contributor

Thank you for following the naming conventions for pull request titles! 🙏

Copy link
Contributor

apps/formbricks-com/pages/community/Roadmap.tsx

Instead of repeating the className attribute in each JSX element, you can define a constant for the common classes and use it in the JSX elements. This will make the code cleaner and easier to maintain.
Create Issue
See the diff
Checkout the fix

    const commonClasses = "group mb-2 flex max-w-fit items-center justify-between rounded-xl border border-slate-200 bg-slate-100 px-6 py-3 text-slate-700 transition-all hover:scale-105 hover:border-slate-300 hover:bg-slate-200";

    return (
      <div className={commonClasses}>
        ...
      </div>
    );
git fetch origin && git checkout -b ReviewBot/Impro-l4tig6p origin/ReviewBot/Impro-l4tig6p

React.memo is a higher order component. It's similar to React.PureComponent but for function components instead of classes. If your component renders the same result given the same props, you can wrap it in a call to React.memo for a performance boost in some cases by memoizing the result. This means that React will skip rendering the component, and reuse the last rendered result.
Create Issue
See the diff
Checkout the fix

    export const Roadmap = React.memo(({ data }) => {
      ...
    });
git fetch origin && git checkout -b ReviewBot/Impro-n7zgdx5 origin/ReviewBot/Impro-n7zgdx5

@jobenjada jobenjada added this pull request to the merge queue Jan 23, 2024
Merged via the queue into main with commit 3d6e974 Jan 23, 2024
14 checks passed
@jobenjada jobenjada deleted the update-community-page branch January 23, 2024 21:21
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.

None yet

1 participant