repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove client-side isLoggedIn value
[ProtonMail-WebClient.git]
/
packages
/
pass
/
components
/
Layout
/
Card
/
utils.ts
blob
daa995952a6a7cb7fd67cf1ce640979857b8f84a
1
export type CardType = 'success' | 'warning' | 'danger' | 'primary';
2
3
export const getCardTheme = (type?: CardType): string => {
4
switch (type) {
5
case 'warning':
6
return 'ui-orange';
7
case 'danger':
8
return 'ui-red';
9
case 'success':
10
return 'ui-teal';
11
case 'primary':
12
return 'ui-primary';
13
default:
14
return 'ui-standard';
15
}
16
};