mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-09 17:24:34 +01:00
fix some lints
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
export function downloadTextFile(content: string, fileName: string) {
|
||||
const contentType = "application/json";
|
||||
var a = document.createElement("a");
|
||||
var file = new Blob([content], { type: contentType });
|
||||
const a = document.createElement("a");
|
||||
const file = new Blob([content], { type: contentType });
|
||||
a.href = URL.createObjectURL(file);
|
||||
a.download = fileName;
|
||||
a.click();
|
||||
|
||||
@@ -14,9 +14,7 @@ async function generateGradientFromHashedString(str: string) {
|
||||
}
|
||||
|
||||
export async function gradientsPerContact(contacts: ContactItem[]) {
|
||||
//
|
||||
// let gradients: { [key: string]: string } = {};
|
||||
let gradients = new Map();
|
||||
const gradients = new Map();
|
||||
for (const contact of contacts) {
|
||||
const gradient = await generateGradientFromHashedString(contact.name);
|
||||
gradients.set(contact.id, gradient);
|
||||
|
||||
Reference in New Issue
Block a user