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

Feature/#144 add download button #145

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ortiztena
Copy link

added download button functionality.
added date when it generates the txt file.
edited css file.

element.href = URL.createObjectURL(file);
element.download = `Codepaster_Session_${dateNow}.txt`;
element.click();
};
Copy link
Member

Choose a reason for hiding this comment

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

This is not using prettier formatting, @manudous will guide you setting up this

https://www.lemoncode.tv/curso/prettier

@@ -0,0 +1,10 @@
export const handleDownSessionContent = (sessionContent: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

rather

handleDownloadSessionContent


max-width:50%;

}
Copy link
Member

Choose a reason for hiding this comment

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

Could this be simplified since we are using material ui?

Copy link
Author

Choose a reason for hiding this comment

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

added spacing method instead of "50%"

@@ -118,3 +118,45 @@ export const undoIcon = css`
display: initial;
}
`;

export const downButton = css`
Copy link
Member

Choose a reason for hiding this comment

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

This is twice?

Copy link
Author

Choose a reason for hiding this comment

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

renamed to downloadButton and downloadIcon

Copy link
Author

@ortiztena ortiztena left a comment

Choose a reason for hiding this comment

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

Reviewed

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