Skip to content

Commit

Permalink
add empty state notifier for run-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Aug 24, 2021
1 parent 5d19e4e commit bd056e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/lib/pages/lint/lint-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export const LintScreen = () => {
const msg = ev.data.pluginMessage;
if (msg.type == _APP_EVENT_LINT_RESULT_EK) {
const _feedbacks = msg.data as Array<ReflectLintFeedback>;
setFeedbacks(_feedbacks);
if (_feedbacks.length === 0) {
PluginSdk.notify("🤩 Neat and clean (nothing to clean)", 2);
} else {
setFeedbacks(_feedbacks);
}
}
});

Expand Down

1 comment on commit bd056e2

@vercel
Copy link

@vercel vercel bot commented on bd056e2 Aug 24, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.