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

fix: add Rust to interests options and combine utility function #977

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/molecules/FilterHeader/filter-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import useFilterPrefetch from "lib/hooks/useFilterPrefetch";
import uppercaseFirst from "lib/utils/uppercase-first";
import topicNameFormatting from "lib/utils/topic-name-formatting";
import FilterCardSelect from "components/molecules/FilterCardSelect/filter-card-select";
import useTopicOptions from "lib/utils/getTopicOptions";
import getInterestOptions from "lib/utils/getInterestOptions";

const HeaderFilter = () => {
const router = useRouter();
const filterOptions = useFilterOptions();
const topicOptions = useTopicOptions();
const topicOptions = getInterestOptions();

const { filterValues } = useFilterPrefetch();
const { filterName, toolName, selectedFilter } = router.query;
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/getInterestOptions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const getInterestOptions = () => {
const interests = ["javascript", "python", "java", "typescript", "csharp", "cpp", "php", "c", "ruby" , "ai", "ml", "react"];
const interests = ["javascript", "python", "java", "typescript", "rust", "csharp", "cpp", "php", "c", "ruby" , "ai", "ml", "react"];

return interests;
};
Expand Down
7 changes: 0 additions & 7 deletions lib/utils/getTopicOptions.ts

This file was deleted.