[alerts] Use break in switch (#11)

This commit is contained in:
Anthony Lukin 2022-04-21 04:15:00 +07:00 committed by GitHub
commit b86e947d93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,12 +2,16 @@
<#switch message.type>
<#case "error">
<#assign color="bg-red-100 text-red-600">
<#break>
<#case "info">
<#assign color="bg-blue-100 text-blue-600">
<#break>
<#case "success">
<#assign color="bg-green-100 text-green-600">
<#break>
<#case "warning">
<#assign color="bg-orange-100 text-orange-600">
<#break>
<#default>
<#assign color="bg-blue-100 text-blue-600">
</#switch>