chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// @flow
|
||||
import { Collection } from '../models';
|
||||
import naturalSort from '../../shared/utils/naturalSort';
|
||||
import { Collection } from "../models";
|
||||
import naturalSort from "../../shared/utils/naturalSort";
|
||||
|
||||
type Document = {
|
||||
children: Document[],
|
||||
@@ -10,7 +10,7 @@ type Document = {
|
||||
};
|
||||
|
||||
const sortDocuments = (documents: Document[]): Document[] => {
|
||||
const orderedDocs = naturalSort(documents, 'title');
|
||||
const orderedDocs = naturalSort(documents, "title");
|
||||
|
||||
return orderedDocs.map(document => ({
|
||||
...document,
|
||||
@@ -25,7 +25,7 @@ export default function present(collection: Collection) {
|
||||
name: collection.name,
|
||||
description: collection.description,
|
||||
icon: collection.icon,
|
||||
color: collection.color || '#4E5C6E',
|
||||
color: collection.color || "#4E5C6E",
|
||||
type: collection.type,
|
||||
private: collection.private,
|
||||
createdAt: collection.createdAt,
|
||||
@@ -34,7 +34,7 @@ export default function present(collection: Collection) {
|
||||
documents: undefined,
|
||||
};
|
||||
|
||||
if (collection.type === 'atlas') {
|
||||
if (collection.type === "atlas") {
|
||||
// Force alphabetical sorting
|
||||
data.documents = sortDocuments(collection.documentStructure);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user