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

feat: Basic StepDrawer components implementation #1021

Merged
merged 8 commits into from
Jun 24, 2024
Prev Previous commit
Next Next commit
fix: sort categories
  • Loading branch information
zoltanszabo-bitrise committed Jun 21, 2024
commit 7fd242a721eb1cf23c2e05af66a3eacf057662fd
2 changes: 1 addition & 1 deletion source/javascripts/components/StepDrawer/hooks/useSteps.ts
zoltanszabo-bitrise marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const useSteps = () => {
export const useCategories = () => {
const { steps } = useSteps();
const categories = useMemo(() => {
return uniq(steps.flatMap((step) => step.categories));
return uniq(steps.flatMap((step) => step.categories)).sort();
}, [steps]);
return { categories };
};
Expand Down