Skip to content

Commit

Permalink
feat(ffe-feedback-react): bytter ut lottie animasjon mot vanlig bilde
Browse files Browse the repository at this point in the history
  • Loading branch information
pethel committed Sep 17, 2024
1 parent 2a5a9cb commit 9e00b11
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 24,184 deletions.
3 changes: 1 addition & 2 deletions packages/ffe-feedback-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"@sb1/ffe-core-react": "^9.1.3",
"@sb1/ffe-feedback": "^2.0.4",
"@sb1/ffe-form-react": "^21.1.11",
"classnames": "^2.3.1",
"lottie-web": "^5.12.2"
"classnames": "^2.3.1"
},
"devDependencies": {
"@sb1/ffe-buildtool": "^0.9.0",
Expand Down
21 changes: 0 additions & 21 deletions packages/ffe-feedback-react/src/Animation.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions packages/ffe-feedback-react/src/Feedback.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useState, useRef, useId } from 'react';
import { flushSync } from 'react-dom';
import { Animation } from './Animation';
import { txt } from './i18n/texts';
import { FeedbackThumbs, Thumb } from './FeedbackThumbs';
import classNames from 'classnames';
import { FeedbackExpanded, FeedbackExpandedProps } from './FeedbackExpanded';
import { HighFive } from './HighFive';

export interface FeedbackProps {
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
Expand Down Expand Up @@ -72,7 +72,7 @@ export const Feedback: React.FC<FeedbackProps> = ({
},
txt[locale].FEEDBACK_SENT_HEADING,
)}
<Animation />
<HighFive />
</div>
</div>
);
Expand Down
Loading

0 comments on commit 9e00b11

Please sign in to comment.