Skip to content

Commit

Permalink
Merge pull request #897 from equinor/fix/bad-build
Browse files Browse the repository at this point in the history
Fix build crashing
  • Loading branch information
mariush2 authored Dec 6, 2024
2 parents d08ef1d + 0378c95 commit c1d8dc0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 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
@@ -1,6 +1,6 @@
{
"name": "@equinor/amplify-component-lib",
"version": "8.16.0",
"version": "8.16.1",
"description": "Frontend Typescript components for the Amplify team",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/atoms/hooks/useAmplifyKit.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from 'react';

import { RichText } from 'src/molecules/RichTextEditor';
import { AmplifyKit } from 'src/molecules/RichTextEditor/custom-extensions/AmplifyKit';
import {
ImageExtensionFnProps,
RichTextEditorFeatures,
Expand All @@ -23,7 +23,7 @@ export const useAmplifyKit = ({
// The new compound component structure also lets users circumvent this if they need more control
return useMemo(
() =>
RichText.Kit.configure({
AmplifyKit.configure({
placeholder: placeholder ? { placeholder } : undefined,
link: features?.includes(RichTextEditorFeatures.LINKS) ? {} : false,
table: features?.includes(RichTextEditorFeatures.TABLE) ? {} : false,
Expand Down
2 changes: 1 addition & 1 deletion src/molecules/RichTextDisplay/RichTextDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FC, HTMLAttributes, useEffect, useRef } from 'react';

import { Editor, Extensions, useEditor } from '@tiptap/react';

import { useAmplifyKit } from 'src/atoms';
import { useAmplifyKit } from 'src/atoms/hooks/useAmplifyKit';
import {
EditorContent,
EditorStyling,
Expand Down

0 comments on commit c1d8dc0

Please sign in to comment.