Skip to content

Conversation

@lusan
Copy link
Contributor

@lusan lusan commented Oct 20, 2019

What kind of change does this PR introduce?

Refactors code as a part of hacktoberfest mentioned in #2621.
@Saeris @christianalfoni

What is the current behavior?

packages/app/src/app/pages/Sandbox/Editor/Content/Tabs/index.js was using Cerebral.
packages/app/src/app/pages/Sandbox/Editor/Content/Tabs/elements.js was not in TS.

What is the new behavior?

packages/app/src/app/pages/Sandbox/Editor/Content/Tabs/index.tsx is using Overmind.
packages/app/src/app/pages/Sandbox/Editor/Content/Tabs/elements.js is in TS. I had to convert it to TS to fix linting errors for Tabs/index.js.

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  1. replaced inject and hooksObserver with useOvermind
  2. yarn test
  3. yarn lint
  4. yarn typecheck

Checklist

  • Documentation
  • Testing
  • Ready to be merged
  • Added myself to contributors table

@lusan lusan changed the title refactored content editor tabs refactored content editor tabs packages/app/src/app/pages/Sandbox/Editor/Content/Tabs/index.tsx Oct 20, 2019
@lbogdan
Copy link
Contributor

lbogdan commented Oct 20, 2019

Build for latest commit d5404f7 is at https://pr2881.build.csb.dev/s/new.

@lusan
Copy link
Contributor Author

lusan commented Oct 30, 2019

Hi @Saeris I am sure the team must be burdened with a lot of PRs!
I was just curious if my PRs will be reviewed in the near future :)

@christianalfoni
Copy link
Contributor

Hi there!

Thanks for the work here. It turns out we are not using the component anymore, but I will merge it nevertheless for your hard work 😄

@christianalfoni christianalfoni merged commit 8f27b61 into codesandbox:master Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧠 Overmind Indicates that this is related to the app's State Management 🔨 Refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants