web: change buttons
This commit is contained in:
parent
7d2147779a
commit
75d8cafc7b
@ -1,7 +1,7 @@
|
|||||||
import { Button, ButtonOwnProps } from "@mui/material";
|
import { Button, ButtonOwnProps } from "@mui/material";
|
||||||
|
|
||||||
type Review = "Completed" | "Submit" | "Reject" | "Revoke" | "Accept" | "Publish"
|
type Review = "Completed" | "Submit" | "Reject" | "Revoke" | "Accept" | "Validate" | "Upload"
|
||||||
type Action = "completed" | "submit" | "reject" | "revoke" | "trigger-validate" | "trigger-publish"
|
type Action = "completed" | "submit" | "reject" | "revoke" | "trigger-validate" | "trigger-upload"
|
||||||
interface ReviewButton {
|
interface ReviewButton {
|
||||||
name: Review,
|
name: Review,
|
||||||
action: Action,
|
action: Action,
|
||||||
@ -27,8 +27,9 @@ export default function ReviewButtons() {
|
|||||||
<ReviewButton color="info" name="Submit" action="submit"/>
|
<ReviewButton color="info" name="Submit" action="submit"/>
|
||||||
<ReviewButton color="info" name="Revoke" action="revoke"/>
|
<ReviewButton color="info" name="Revoke" action="revoke"/>
|
||||||
<ReviewButton color="info" name="Accept" action="trigger-validate"/>
|
<ReviewButton color="info" name="Accept" action="trigger-validate"/>
|
||||||
|
<ReviewButton color="info" name="Validate" action="trigger-validate"/>
|
||||||
<ReviewButton color="error" name="Reject" action="reject"/>
|
<ReviewButton color="error" name="Reject" action="reject"/>
|
||||||
<ReviewButton color="info" name="Publish" action="trigger-publish"/>
|
<ReviewButton color="info" name="Upload" action="trigger-upload"/>
|
||||||
<ReviewButton color="info" name="Completed" action="completed"/>
|
<ReviewButton color="info" name="Completed" action="completed"/>
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user