MLH-Fellowship / orientation-project-js-23.SUM.A

Orientation Project (JavaScript) for 23.SUM.A
0 stars 4 forks source link

Export resume as pdf #17

Closed JAngelGC closed 1 year ago

JAngelGC commented 1 year ago

I have created a context to store only the desired data to export, so the UI elements are not included.

For this reason, it is necessary to keep track of an array of experiences, education, and skills. So, any time the array is updated, functions that are defined in the context can be called to update the resume component to export.

For example, when an array is updated:

// First assign the context, need to import it, and useContext
const ctx = useContext(ResumeContext)
// When the array is updated, call the function that it is in the context
ctx.setExperience(newArrayOfExperiences)

This is an example of how it will look like image

JAngelGC commented 1 year ago

@wrussell1999 Sure, I'v written a couple of test to verify everything is working fine

wrussell1999 commented 1 year ago

This closes https://github.com/MLH-Fellowship/orientation-project-js-23.SUM.A/issues/12