From 89048b2f7b7dbe1336f9e8c7306bf9419de88270 Mon Sep 17 00:00:00 2001 From: Th1nkK1D Date: Tue, 23 Jan 2024 13:27:52 +0700 Subject: [PATCH] fix: update representative assembly name --- src/components/NavigationBar/NavigationBar.svelte | 4 ++-- src/components/Proposer/Proposer.story.svelte | 2 +- src/mocks/data/politician.ts | 2 +- src/models/assembly.ts | 2 +- src/routes/+page.svelte | 2 +- src/routes/bills/+page.server.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/NavigationBar/NavigationBar.svelte b/src/components/NavigationBar/NavigationBar.svelte index 892c5d07..3f57da30 100644 --- a/src/components/NavigationBar/NavigationBar.svelte +++ b/src/components/NavigationBar/NavigationBar.svelte @@ -12,7 +12,7 @@ subs: [ { label: 'สภาผู้แทนราษฎร', - url: '/assemblies/สมาชิกสภาผู้แทนราษฎร-26', + url: '/assemblies/สภาผู้แทนราษฎร-26', type: MenuTypes.link }, { label: 'วุฒิสภา', url: '/assemblies/วุฒิสภา-12', type: MenuTypes.link } @@ -21,7 +21,7 @@ { label: 'การลงมติ', icon: VoteIcon, - url: '/assemblies/สมาชิกสภาผู้แทนราษฎร-26/votes', + url: '/assemblies/สภาผู้แทนราษฎร-26/votes', type: MenuTypes.both }, // { diff --git a/src/components/Proposer/Proposer.story.svelte b/src/components/Proposer/Proposer.story.svelte index 09fb0bbd..3a4f83ce 100644 --- a/src/components/Proposer/Proposer.story.svelte +++ b/src/components/Proposer/Proposer.story.svelte @@ -5,7 +5,7 @@ import { movingForwardPolitician } from '../../mocks/data/politician'; const rep26: Assembly = { - id: 'สมาชิกสภาผู้แทนราษฎร-26', + id: 'สภาผู้แทนราษฎร-26', name: AssemblyName.Representatives, abbreviation: 'สส.', term: 26, diff --git a/src/mocks/data/politician.ts b/src/mocks/data/politician.ts index 958d13ff..80f5dd41 100644 --- a/src/mocks/data/politician.ts +++ b/src/mocks/data/politician.ts @@ -21,7 +21,7 @@ export const movingForwardPolitician: Politician = { { role: 'สมาชิกแบบบัญชีรายชื่อ', assembly: { - id: 'สมาชิกสภาผู้แทนราษฎร-26', + id: 'สภาผู้แทนราษฎร-26', name: AssemblyName.Representatives, abbreviation: 'สส.', term: 26, diff --git a/src/models/assembly.ts b/src/models/assembly.ts index 1ca15f5d..12a830bf 100644 --- a/src/models/assembly.ts +++ b/src/models/assembly.ts @@ -3,7 +3,7 @@ import { safeFind } from '$lib/datasheets/processor'; import type { Party } from './party'; export enum AssemblyName { - Representatives = 'สมาชิกสภาผู้แทนราษฎร', + Representatives = 'สภาผู้แทนราษฎร', Senates = 'วุฒิสภา' } diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index db664505..af927976 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -146,7 +146,7 @@