Skip to content

Commit

Permalink
🔥 Remove replaceMagic function
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Oct 20, 2023
1 parent 3cb9e6a commit baf1d8e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 47 deletions.
3 changes: 1 addition & 2 deletions src/components/message/Message.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { FC, useState } from 'react'
import { Message as MessageType } from '../../api/Message'
import { replaceMagic } from '../../lib/replaceLinksHelper'
import MessageModalDelete from './MessageModalDelete'
import MessageMap from './MessageMap'
import { Ticker } from '../../api/Ticker'
Expand Down Expand Up @@ -32,7 +31,7 @@ const Message: FC<Props> = ({ message, ticker }) => {
<MessageModalDelete message={message} onClose={() => setDeleteModalOpen(false)} open={deleteModalOpen} />
<p
dangerouslySetInnerHTML={{
__html: replaceMagic(message.text),
__html: message.text.replace(/(?:\r\n|\r|\n)/g, '<br/>'),
}}
style={{ paddingRight: theme.spacing(6) }}
/>
Expand Down
33 changes: 0 additions & 33 deletions src/lib/replaceLinksHelper.test.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/lib/replaceLinksHelper.ts

This file was deleted.

0 comments on commit baf1d8e

Please sign in to comment.