rename type

This commit is contained in:
Hailey
2025-09-25 07:13:59 -07:00
committed by Eric Bailey
parent df8fcf204b
commit 3a1bc0b8a5
@@ -2,7 +2,7 @@ import {type ReasonType} from '@atproto/api/dist/client/types/com/atproto/modera
import {msg} from '@lingui/macro' import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
export type TopLevelReason = export type ReportCategory =
| 'childSafety' | 'childSafety'
| 'violencePhysicalHarm' | 'violencePhysicalHarm'
| 'sexualAdultContent' | 'sexualAdultContent'
@@ -13,7 +13,7 @@ export type TopLevelReason =
| 'other' | 'other'
export interface ReportOptionCategory { export interface ReportOptionCategory {
key: TopLevelReason key: ReportCategory
title: string title: string
description: string description: string
options: ReportOption[] options: ReportOption[]
@@ -313,7 +313,7 @@ export function useReportOptions() {
Object.values(categories) as ReportOptionCategory[] Object.values(categories) as ReportOptionCategory[]
).sort((a, b) => a.sort - b.sort) ).sort((a, b) => a.sort - b.sort)
const getCategory = (reasonName: TopLevelReason) => { const getCategory = (reasonName: ReportCategory) => {
return categories[reasonName] return categories[reasonName]
} }