diff --git a/public/react/src/modules/courses/members/ChangeRolePop.js b/public/react/src/modules/courses/members/ChangeRolePop.js index 13130394a..9883c488f 100644 --- a/public/react/src/modules/courses/members/ChangeRolePop.js +++ b/public/react/src/modules/courses/members/ChangeRolePop.js @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react' +import React, { useState, useEffect, memo } from 'react' import { trigger, WordsBtn } from 'educoder' import { Input, Checkbox, Popconfirm } from "antd"; import axios from 'axios' @@ -77,4 +77,4 @@ function ChangeRolePop({ member_roles = [], record, courseId, onChangeRoleSucces ) } -export default ChangeRolePop \ No newline at end of file +export default memo(ChangeRolePop) \ No newline at end of file