Skip to content

Commit

Permalink
fix: update representative assembly name
Browse files Browse the repository at this point in the history
  • Loading branch information
Th1nkK1D committed Jan 23, 2024
1 parent 6442774 commit 89048b2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/NavigationBar/NavigationBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
subs: [
{
label: 'สภาผู้แทนราษฎร',
url: '/assemblies/สมาชิกสภาผู้แทนราษฎร-26',
url: '/assemblies/สภาผู้แทนราษฎร-26',
type: MenuTypes.link
},
{ label: 'วุฒิสภา', url: '/assemblies/วุฒิสภา-12', type: MenuTypes.link }
Expand All @@ -21,7 +21,7 @@
{
label: 'การลงมติ',
icon: VoteIcon,
url: '/assemblies/สมาชิกสภาผู้แทนราษฎร-26/votes',
url: '/assemblies/สภาผู้แทนราษฎร-26/votes',
type: MenuTypes.both
},
// {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Proposer/Proposer.story.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { movingForwardPolitician } from '../../mocks/data/politician';
const rep26: Assembly = {
id: 'สมาชิกสภาผู้แทนราษฎร-26',
id: 'สภาผู้แทนราษฎร-26',
name: AssemblyName.Representatives,
abbreviation: 'สส.',
term: 26,
Expand Down
2 changes: 1 addition & 1 deletion src/mocks/data/politician.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const movingForwardPolitician: Politician = {
{
role: 'สมาชิกแบบบัญชีรายชื่อ',
assembly: {
id: 'สมาชิกสภาผู้แทนราษฎร-26',
id: 'สภาผู้แทนราษฎร-26',
name: AssemblyName.Representatives,
abbreviation: 'สส.',
term: 26,
Expand Down
2 changes: 1 addition & 1 deletion src/models/assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { safeFind } from '$lib/datasheets/processor';
import type { Party } from './party';

export enum AssemblyName {
Representatives = 'สมาชิกสภาผู้แทนราษฎร',
Representatives = 'สภาผู้แทนราษฎร',
Senates = 'วุฒิสภา'
}

Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
</section>
<div class="flex flex-col gap-[6px]">
<Button
href="/assemblies/สมาชิกสภาผู้แทนราษฎร-26"
href="/assemblies/สภาผู้แทนราษฎร-26"
kind="secondary"
icon={ArrowRight}
class="w-full max-w-none"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/bills/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function load() {
...enactedBill,
proposerType: BillProposerType.Cabinet,
proposedByAssembly: (await fetchAssemblies()).find(
({ id }) => id === 'สมาชิกสภาผู้แทนราษฎร-26'
({ id }) => id === 'สภาผู้แทนราษฎร-26'
) as Assembly,
proposedLedByPolitician: undefined,
coProposedByPoliticians: undefined
Expand Down

0 comments on commit 89048b2

Please sign in to comment.