Skip to content

Commit

Permalink
Merge pull request #2299 from SpareBank1/develop_fiks-feedback
Browse files Browse the repository at this point in the history
Develop fiks feedback
  • Loading branch information
pethel authored Sep 17, 2024
2 parents 42ae0a9 + 9e00b11 commit 3ca3d9e
Show file tree
Hide file tree
Showing 6 changed files with 235 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.

18 changes: 18 additions & 0 deletions packages/ffe-feedback-react/src/Feedback.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import { Feedback } from './Feedback';
import type { StoryObj, Meta } from '@storybook/react';

const meta: Meta<typeof Feedback> = {
title: 'components/feedback/Feedback',
component: Feedback,
tags: ['autodocs'],
};
export default meta;

type Story = StoryObj<typeof Feedback>;
export const Standard: Story = {
args: {
headingLevel: 2,
},
render: args => <Feedback {...args} />,
};
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 3ca3d9e

Please sign in to comment.