Remove username to button
This commit is contained in:
@@ -309,7 +309,6 @@ export default function Time(props) {
|
||||
<TableRow>
|
||||
<TableCell>名称</TableCell>
|
||||
<TableCell>时间段</TableCell>
|
||||
<TableCell>姓名</TableCell>
|
||||
<TableCell>操作</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
@@ -318,7 +317,6 @@ export default function Time(props) {
|
||||
<TableRow key={range.id}>
|
||||
<TableCell>{range.name}</TableCell>
|
||||
<TableCell>{range.range}</TableCell>
|
||||
<TableCell>{range.username}</TableCell>
|
||||
<TableCell>
|
||||
<Button
|
||||
sx={{
|
||||
@@ -329,7 +327,7 @@ export default function Time(props) {
|
||||
color="primary"
|
||||
onClick={() => updateUsername(range.id, props.username)}
|
||||
>
|
||||
抢!
|
||||
{range.username ? range.username : "抢!"}
|
||||
</Button>
|
||||
{isAdmin() && (
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user