From 3da3793282a2bb50f7f3e39fbe08efee7582743b Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sat, 9 Jan 2021 01:07:35 +0800
Subject: ...

---
 FrontEnd/src/app/views/home/BoardWithUser.tsx | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

(limited to 'FrontEnd/src/app/views/home/BoardWithUser.tsx')

diff --git a/FrontEnd/src/app/views/home/BoardWithUser.tsx b/FrontEnd/src/app/views/home/BoardWithUser.tsx
index 8afe440b..ba22916c 100644
--- a/FrontEnd/src/app/views/home/BoardWithUser.tsx
+++ b/FrontEnd/src/app/views/home/BoardWithUser.tsx
@@ -20,11 +20,11 @@ const BoardWithUser: React.FC<{ user: AuthUser }> = ({ user }) => {
         <Col xs="12" md="6">
           <TimelineBoard
             title={t("home.bookmarkTimeline")}
-            load={() => getHttpBookmarkClient().list(user.token)}
+            load={() => getHttpBookmarkClient().list()}
             editHandler={{
               onDelete: (timeline) => {
                 return getHttpBookmarkClient()
-                  .delete(timeline, user.token)
+                  .delete(timeline)
                   .catch((e) => {
                     pushAlert({
                       message: {
@@ -39,8 +39,7 @@ const BoardWithUser: React.FC<{ user: AuthUser }> = ({ user }) => {
               onMove: (timeline, index, offset) => {
                 return getHttpBookmarkClient()
                   .move(
-                    { timeline, newPosition: index + offset + 1 }, // +1 because backend contract: index starts at 1
-                    user.token
+                    { timeline, newPosition: index + offset + 1 } // +1 because backend contract: index starts at 1
                   )
                   .catch((e) => {
                     pushAlert({
@@ -75,7 +74,7 @@ const BoardWithUser: React.FC<{ user: AuthUser }> = ({ user }) => {
                 ? {
                     onDelete: (timeline) => {
                       return getHttpHighlightClient()
-                        .delete(timeline, user.token)
+                        .delete(timeline)
                         .catch((e) => {
                           pushAlert({
                             message: {
@@ -90,8 +89,7 @@ const BoardWithUser: React.FC<{ user: AuthUser }> = ({ user }) => {
                     onMove: (timeline, index, offset) => {
                       return getHttpHighlightClient()
                         .move(
-                          { timeline, newPosition: index + offset + 1 }, // +1 because backend contract: index starts at 1
-                          user.token
+                          { timeline, newPosition: index + offset + 1 } // +1 because backend contract: index starts at 1
                         )
                         .catch((e) => {
                           pushAlert({
-- 
cgit v1.2.3

