Redesigned the Record page along with solving some bugs on the FillBlanks
This commit is contained in:
@@ -12,3 +12,7 @@ export const moduleLabels: {[key in Module]: string} = {
|
||||
export const sortByModule = (a: {module: Module}, b: {module: Module}) => {
|
||||
return MODULE_ARRAY.findIndex((x) => a.module === x) - MODULE_ARRAY.findIndex((x) => b.module === x);
|
||||
};
|
||||
|
||||
export const sortByModuleName = (a: string, b: string) => {
|
||||
return MODULE_ARRAY.findIndex((x) => a === x) - MODULE_ARRAY.findIndex((x) => b === x);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user