Skip to content

Commit

Permalink
Revert "Allows preference list features to control the order in which…
Browse files Browse the repository at this point in the history
… they are sorted" (tgstation#79779)
  • Loading branch information
Mothblocks authored Nov 17, 2023
1 parent 43cf6de commit eecd6c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions tgui/packages/tgui/interfaces/PreferencesMenu/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,7 @@ const createSetRandomization =

const sortPreferences = sortBy<[string, unknown]>(([featureId, _]) => {
const feature = features[featureId];
if (feature?.sortingPrefix) {
return feature.sortingPrefix + feature.name;
} else {
return feature?.name;
}
return feature?.name;
});

export const PreferenceList = (props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export type Feature<
component: FeatureValue<TReceiving, TSending, TServerData>;
category?: string;
description?: string;
sortingPrefix?: string;
};

/**
Expand Down

0 comments on commit eecd6c2

Please sign in to comment.