From 81d75a736501d7df80d6cefb5922b3e0f94f7c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sat, 22 Jan 2022 03:40:30 +0400 Subject: [PATCH] Fix copy alert error --- components/teks/teks-drawer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/teks/teks-drawer.js b/components/teks/teks-drawer.js index 4b868a7..e01fc66 100644 --- a/components/teks/teks-drawer.js +++ b/components/teks/teks-drawer.js @@ -1,4 +1,4 @@ -import {useEffect, useState} from 'react' +import {useEffect, useState, forwardRef} from 'react' import PropTypes from 'prop-types' import Link from 'next/link' import {useRouter} from 'next/router' @@ -160,9 +160,9 @@ const Root = styled('div')(( } })) -function Alert(props) { - return -} +const Alert = forwardRef(function Alert(props, ref) { // eslint-disable-line func-names + return +}) const drawerWidth = 240