Skip to content

accordion trekkspill oversatt #2316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

accordion trekkspill oversatt #2316

wants to merge 2 commits into from

Conversation

taniaholst
Copy link
Contributor

This pull request refactors the codebase to rename the "Accordion" component and related functionality to "Trekkspill" for improved clarity and consistency. The changes span multiple files, including components, styles, hooks, and type definitions.

Component and Hook Updates:

  • Renamed Accordion component to Trekkspill and updated all references, including props (accordiontrekkspill) and state variables (openAccordionsopenTrekkspill). ([[1]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-cff24ff9a9a6b60d3868be7147d33f9ce634683349b0cbc99bf04e17b654947dL37-R46), [[2]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-cff24ff9a9a6b60d3868be7147d33f9ce634683349b0cbc99bf04e17b654947dL80-R80), [[3]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-a2994b5f9d302b1d5a7e4a21c23c3d4d8ed3cf74ebf194eedc94b28446d1ccebL10-R65), [[4]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-407f72f841add4246c84a912c6466dc316fd7e1050c945f1b84522cf2deaf346L2-R22), [[5]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-4e085626c9a607764a96f7225bab34b0a6879fbd53e659cf045bd9374b19248dL4-R4))
  • Updated hook useCheckAndOpenAccordionPanel to useCheckAndOpenTrekkspillPanel. ([packages/nextjs/src/store/hooks/useCheckAndOpenTrekkspillPanel.tsL4-R4](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-4e085626c9a607764a96f7225bab34b0a6879fbd53e659cf045bd9374b19248dL4-R4))

Style Updates:

  • Renamed Accordion.module.scss to Trekkspill.module.scss and updated class names (.accordion.trekkspill). ([packages/nextjs/src/components/_common/trekkspill/Trekkspill.module.scssL1-R1](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-a7f3f9f06fc00edb4e127305207d21cca59075f00cdd86293b3ea9393e80c77aL1-R1))

Type Definitions:

  • Updated type definitions to reflect the renaming (PartConfigAccordionPartConfigTrekkspill, PartType.AccordionPartType.Trekkspill). ([[1]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-4e646302b0aa8fc5ce4b90b64759f4039dc0dadc1f8baeda118a3ef726a68005L3-R3), [[2]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-4e646302b0aa8fc5ce4b90b64759f4039dc0dadc1f8baeda118a3ef726a68005L68-R68), [[3]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-4e646302b0aa8fc5ce4b90b64759f4039dc0dadc1f8baeda118a3ef726a68005L96-R96))

Storybook and Parts Mapper:

  • Renamed Accordion.stories.ts to Trekkspill.stories.ts and updated Storybook component references. ([packages/nextjs/src/components/_common/trekkspill/Trekkspill.stories.tsL3-R12](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-1750cf10ae82aa9fe6a4e54a8d06cc14b2d86adc5dfce7df2b8c6c9bb3207d94L3-R12))
  • Updated PartsMapper.tsx to use TrekkspillPart instead of AccordionPart. ([[1]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-e705d4bd30b7df57b6fd41e76beb8de02cc40190baf4be6f31b311dce2033016L56-R56), [[2]](https://github.com/navikt/nav-enonicxp-frontend/pull/2316/files#diff-e705d4bd30b7df57b6fd41e76beb8de02cc40190baf4be6f31b311dce2033016L75-R76))

@taniaholst taniaholst requested a review from a team as a code owner June 4, 2025 10:13
Copy link

sonarqubecloud bot commented Jun 4, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant