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

Adds "Reset" link to quickly reset all ratings to zero #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion components/SnowflakeApp.js
Expand Up @@ -47,7 +47,7 @@ const coerceMilestone = (value: number): Milestone => {

const emptyState = (): SnowflakeAppState => {
return {
name: '',
name: 'Enter Your Name Here',
title: '',
milestoneByTrack: {
'MOBILE': 0,
Expand Down Expand Up @@ -200,6 +200,9 @@ class SnowflakeApp extends React.Component<Props, SnowflakeAppState> {
handleTrackMilestoneChangeFn={(track, milestone) => this.handleTrackMilestoneChange(track, milestone)} />
<div style={{display: 'flex', paddingBottom: '20px'}}>
<div style={{flex: 1}}>
<a href="#" onClick={() => this.setState(emptyState())}>Reset</a>
</div>
<div style={{flex: 5}}>
Made with ❤️ by <a href="https://medium.engineering" target="_blank">Medium Eng</a>.
Learn about the <a href="https://medium.com/s/engineering-growth-framework" target="_blank">growth framework</a>.
Get the <a href="https://github.com/Medium/snowflake" target="_blank">source code</a>.
Expand Down