diff --git a/src/components/Icons/tagCategories.ts b/src/components/Icons/tagCategories.ts index 56f062a..9f3312f 100644 --- a/src/components/Icons/tagCategories.ts +++ b/src/components/Icons/tagCategories.ts @@ -1,12 +1,13 @@ import { IconType } from "react-icons"; -import { MdCatchingPokemon, MdNewReleases, MdAutoFixHigh, MdSettingsSuggest } from "react-icons/md"; +import { MdCategory, MdCatchingPokemon, MdNewReleases, MdAutoFixHigh, MdSettingsSuggest } from "react-icons/md"; import { BiSolidGame } from "react-icons/bi"; import { FaClock, FaGaugeHigh, FaMasksTheater } from "react-icons/fa6"; import { IoLogoGameControllerA } from "react-icons/io"; export const CATEGORY_ICONS: Record = { + "Category": MdCategory, "Pokédex": MdCatchingPokemon, - "Sprites": BiSolidGame, + "Graphics": BiSolidGame, "New": MdNewReleases, "Altered": MdAutoFixHigh, "Quality of Life": MdSettingsSuggest, diff --git a/supabase/migrations/20251224103957_adjust_tag_categories_enum.sql b/supabase/migrations/20251224103957_adjust_tag_categories_enum.sql new file mode 100644 index 0000000..79fb6fc --- /dev/null +++ b/supabase/migrations/20251224103957_adjust_tag_categories_enum.sql @@ -0,0 +1,7 @@ +DO $$ BEGIN + if exists (select 1 from pg_type where typname = 'Tag Categories' and typtype = 'e' and typarray = 0) then + alter type public."Tag Categories" rename value 'Sprites' to 'Graphics'; + end if; +END $$; + +alter type public."Tag Categories" add value if not exists 'Category';