Shun Miyazawa 4 лет назад
Родитель
Сommit
292a9e2862
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/src/components/SubscribeButton.jsx

+ 2 - 2
packages/app/src/components/SubscribeButton.jsx

@@ -14,7 +14,7 @@ const SubscruibeButton = (props) => {
 
 
   const { appContainer, pageContainer } = props;
   const { appContainer, pageContainer } = props;
 
 
-  const handleClick = async() => {
+  const Subscribe = async() => {
     try {
     try {
       const res = await appContainer.apiv3Put('page/subscribe', { pageId: pageContainer.state.pageId, status: !isWatching });
       const res = await appContainer.apiv3Put('page/subscribe', { pageId: pageContainer.state.pageId, status: !isWatching });
       if (res) {
       if (res) {
@@ -32,7 +32,7 @@ const SubscruibeButton = (props) => {
       <button
       <button
         type="button"
         type="button"
         id="subscribe-button"
         id="subscribe-button"
-        onClick={handleClick}
+        onClick={Subscribe}
         className={`btn btn-watch border-0 ${`btn-${props.size}`} ${isWatching ? 'active' : ''} `}
         className={`btn btn-watch border-0 ${`btn-${props.size}`} ${isWatching ? 'active' : ''} `}
       >
       >
         {isWatching && (
         {isWatching && (