convert const function to function
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { navigate } from 'vite-plugin-ssr/client/router';
|
||||
|
||||
export const NoteWrapper = ({
|
||||
export function NoteWrapper({
|
||||
children,
|
||||
href,
|
||||
className,
|
||||
@@ -8,7 +8,7 @@ export const NoteWrapper = ({
|
||||
children: React.ReactNode;
|
||||
href: string;
|
||||
className: string;
|
||||
}) => {
|
||||
}) {
|
||||
const openThread = (event: any, href: string) => {
|
||||
const selection = window.getSelection();
|
||||
if (selection.toString().length === 0) {
|
||||
@@ -23,4 +23,4 @@ export const NoteWrapper = ({
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user