Skip to content

Conversation

@MichaelDeBoey
Copy link
Contributor

@MichaelDeBoey MichaelDeBoey commented May 22, 2019

What kind of change does this PR introduce?
I've extracted @Saeris' changes to Advertisement out of #1925.

Removed unused container styles and reorganized code to follow updated coding conventions (to be documented at a later date). Added a new useScript hook (based on https://usehooks.com/useScript) and a hooks directory.

What is the current behavior?

  • Class component CodeFund

What is the new behavior?

  • Rename CodeFund component to Advertisement
  • Created useScript hook
  • Use useScript hook in Advertisement
  • Refactor code to TS

Checklist:

  • Documentation N/A
  • Tests
  • Ready to be merged
  • Added myself to contributors table N/A

@MichaelDeBoey MichaelDeBoey force-pushed the refactor-advertisement branch from f3a2047 to 4c4d849 Compare May 22, 2019 22:18
@MichaelDeBoey MichaelDeBoey force-pushed the refactor-advertisement branch from 4c4d849 to 1c7df61 Compare May 22, 2019 22:44
Saeris and others added 2 commits May 29, 2019 00:44
Removed unused container styles and reorganized code to follow updated coding conventions (to be documented at a later date). Added a new useScript hook (based on https://usehooks.com/useScript) and a hooks directory.
@MichaelDeBoey MichaelDeBoey force-pushed the refactor-advertisement branch from 1c7df61 to 9353283 Compare May 28, 2019 22:52
@MichaelDeBoey
Copy link
Contributor Author

@CompuIves @Saeris Came across useScript from @palmerhq's the platform

Maybe we should use this one (will add a dependency tho) or copy it over, since that's a more modern way of this hook and is Suspense compatible? 🤔

@CompuIves
Copy link
Member

This is nice!! I'll merge this in now, thank you!

Maybe we should use this one (will add a dependency tho) or copy it over, since that's a more modern way of this hook and is Suspense compatible? 🤔

Let's evaluate it when we are going to support suspense. I want to keep it as simple as possible now.

@CompuIves CompuIves merged commit a4abcac into codesandbox:master May 30, 2019
@MichaelDeBoey MichaelDeBoey deleted the refactor-advertisement branch May 30, 2019 12:36
batiskafff pushed a commit to batiskafff/codesandbox-client that referenced this pull request Jun 19, 2019
* 🔨 Add useScript Hook, Refactor Advertisement to use useScript

Removed unused container styles and reorganized code to follow updated coding conventions (to be documented at a later date). Added a new useScript hook (based on https://usehooks.com/useScript) and a hooks directory.

* Resolve discussions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants