mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 06:43:06 +00:00
chore: remove orphaned getCampaignScopeLabel and unexported hook
This commit is contained in:
parent
d4425251c6
commit
7ff2f243da
2 changed files with 1 additions and 14 deletions
|
|
@ -9,7 +9,7 @@ import {
|
|||
import { CampaignPageChromeText } from '@/components/campaign/shell/CampaignPageChromeText'
|
||||
import { resolveCampaignPageChrome } from '@/lib/campaignPageChrome'
|
||||
|
||||
export const useEffectiveCampaignPageChrome = () => {
|
||||
const useEffectiveCampaignPageChrome = () => {
|
||||
const pathname = usePathname()
|
||||
const role = useCampaignPageChromeRole()
|
||||
const override = useCampaignPageChromeOverride()
|
||||
|
|
|
|||
|
|
@ -153,19 +153,6 @@ export const formatMunicipalityConcentrationHint = (
|
|||
): string =>
|
||||
`Percentual da votação estadual do candidato neste município — não o % dos válidos locais. Colocação: posição no catálogo de ${formatElectionNumber(totalUnits)} unidades.`
|
||||
|
||||
export const getCampaignScopeLabel = (
|
||||
role: CampaignUser['role'],
|
||||
municipalityCount: number,
|
||||
): string => {
|
||||
if (role === 'advisor') {
|
||||
return `${municipalityCount} ${municipalityCount === 1 ? 'município sob sua assessoria' : 'municípios sob sua assessoria'}`
|
||||
}
|
||||
if (role === 'leader') {
|
||||
return `${municipalityCount} ${municipalityCount === 1 ? 'município em que você atua' : 'municípios em que você atua'}`
|
||||
}
|
||||
return `${municipalityCount} ${municipalityCount === 1 ? 'município' : 'municípios'}`
|
||||
}
|
||||
|
||||
export const municipalityGeographyParts = (municipality: {
|
||||
region: string
|
||||
kind: Municipality['kind']
|
||||
|
|
|
|||
Loading…
Reference in a new issue