Skip to content

Commit

Permalink
⬆️ Oppgrader framer-motion
Browse files Browse the repository at this point in the history
Framer motion har byttet navn til motion, fikser imports.
  • Loading branch information
MartinMekk committed Jan 27, 2025
1 parent b79ee6f commit 35ad9ce
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 56 deletions.
141 changes: 92 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"apollo-link-rest": "^0.9.0",
"classnames": "^2.5.1",
"dayjs": "^1.11.13",
"framer-motion": "^11.11.17",
"graphiql": "^3.8.3",
"graphql": "^16.10.0",
"graphql-yoga": "^5.10.11",
"jose": "^5.9.6",
"motion": "^12.0.6",
"nanoid": "^3.3.8",
"next": "^14.2.14",
"nextleton": "^0.6.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/AnimatedExpandableDiv.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AnimatePresence, motion } from 'framer-motion';
import { AnimatePresence, motion } from 'motion/react';
import React, { PropsWithChildren, ReactElement } from 'react';

interface AnimatedExpandableDivProps extends PropsWithChildren {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toast.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from 'classnames';
import { motion } from 'framer-motion';
import { motion } from 'motion/react';
import React, { PropsWithChildren } from 'react';

import { Feilikon } from '@components/ikoner/Feilikon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toasts.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { AnimatePresence } from 'framer-motion';
import { AnimatePresence } from 'motion/react';
import React from 'react';

import { Toast } from '@components/Toast';
Expand Down
2 changes: 1 addition & 1 deletion src/components/eastergurk/EasterGurk.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { motion } from 'framer-motion';
import { motion } from 'motion/react';
import Image from 'next/image';

interface EasterGurkProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { motion } from 'framer-motion';
import { motion } from 'motion/react';
import React, { ReactElement } from 'react';

import { useQuery } from '@apollo/client';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/saksbilde/historikk/Historikk.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from 'classnames';
import { motion } from 'framer-motion';
import { motion } from 'motion/react';
import React, { ReactElement } from 'react';

import { XMarkIcon } from '@navikt/aksel-icons';
Expand Down

0 comments on commit 35ad9ce

Please sign in to comment.