fix: Set REJECT-DROP policy the same text color as REJECT (#622)

This commit is contained in:
xkww3n 2024-03-14 18:54:26 +08:00 committed by GitHub
parent c11b8519f1
commit 9b79da2cdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ interface Props {
}
const parseColor = (text: string) => {
if (text === "REJECT") return "error.main";
if (text === "REJECT" || text === "REJECT-DROP") return "error.main";
if (text === "DIRECT") return "text.primary";
let sum = 0;