Skip to content

adding vsix extension and cleanup code #11

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shayanypn
Copy link
Collaborator

No description provided.

@shayanypn shayanypn requested a review from moshfeu July 26, 2020 16:57
@shayanypn shayanypn self-assigned this Jul 26, 2020
@shayanypn shayanypn added the enhancement New feature or request label Jul 26, 2020
Copy link
Member

@moshfeu moshfeu left a comment

Choose a reason for hiding this comment

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

This app becomes pretty :)
Excellent job!

Comment on lines +1 to +2

export interface IExtension {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export interface IExtension {
export interface IExtension {

Or, in generally, run prettier :)

const Stat: React.FC<IProps> = ({ match, history }) => {
const classes = useStyles();
const [isLoading, setIsLoading] = React.useState(false);
const [releases, setReleases] = React.useState([]);
const [chartOption, setChartOption] = React.useState(default_options);
const [model, setModel] = React.useState({
Copy link
Member

Choose a reason for hiding this comment

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

In the next version, try to set its type (to avoid anys later)

...prevStat,
loading: true,
}));
fetch(`https://api.github.com/repos/${user}/${repo}/releases`)
Copy link
Member

Choose a reason for hiding this comment

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

Consider converting it to async / await

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants