feat: Style the dashboard topbar actions and user dropdown.

This commit is contained in:
Ahmed Bouhuolia
2020-06-02 19:47:38 +02:00
parent b8eb84d896
commit 79e1752331
12 changed files with 137 additions and 65 deletions

View File

@@ -171,3 +171,14 @@ export const saveFilesInAsync = (files, actionCb, extraTasks) => {
});
return PProgress.all(opers);
}
export const firstLettersArgs = (...args) => {
let letters = [];
args.forEach((word) => {
if (typeof word === 'string') {
letters.push(word.charAt(0));
}
});
return letters.join('').toUpperCase();
}