Skip to content

Commit

Permalink
feat: upgrade tributejs package
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonrovirosa committed Jan 12, 2024
1 parent 92f70fc commit 3f54843
Show file tree
Hide file tree
Showing 3 changed files with 3,810 additions and 2,971 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"react-dom": ">= 16.8"
},
"dependencies": {
"@appfolio/tributejs": "github:appfolio/tributejs#sfalTestBranch",
"@fortawesome/fontawesome-free": "^6.2.0",
"@fortawesome/fontawesome-svg-core": "^6.2.0",
"@popperjs/core": "^2.10.1",
Expand Down Expand Up @@ -78,7 +79,6 @@
"storybook-source-link": "^2.0.8",
"styled-jsx": "^5.1.1",
"text-mask-addons": "^3.8.0",
"tributejs": "^5.1.3",
"use-deep-compare-effect": "^1.8.1",
"use-local-storage-state": "^4.0.0",
"uuid": "^8.3.1"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Note/EditableNoteMentions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC, useEffect, useRef, useState } from 'react';
import { TributeItem } from 'tributejs';
import { TributeItem } from '@appfolio/tributejs';
import Alert from '../Alert/Alert';
import Button from '../Button/Button';
import ButtonToolbar from '../Button/ButtonToolbar';
Expand Down Expand Up @@ -65,7 +65,7 @@ const EditableNoteMentions: FC<EditableNoteMentionsProps> = ({
useEffect(() => {
(async () => {
if (mentionableUsers.length > 0 && ref.current) {
const Tribute = (await import('tributejs')).default;
const Tribute = (await import('@appfolio/tributejs')).default;
const tribute = new Tribute({
allowSpaces: true,
menuItemTemplate(item: TributeItem<any>) {
Expand Down
Loading

0 comments on commit 3f54843

Please sign in to comment.