return withTranslation()(preset);
};
+Icon.ADD = makePreset('AddIcon', 'circle-plus');
Icon.DISCORD = makePreset('DiscordIcon', ['fab', 'discord']);
Icon.EDIT = makePreset('EditIcon', 'edit');
Icon.FINISHED = makePreset('FinishedIcon', 'square-check');
Icon.LOGOUT = makePreset('LogoutIcon', 'sign-out-alt');
Icon.PENDING = makePreset('PendingIcon', 'clock');
Icon.PROTOCOL = makePreset('ProtocolIcon', 'file-alt');
+Icon.RESULT = makePreset('ResultIcon', 'clock');
Icon.SECOND_PLACE = makePreset('SecondPlaceIcon', 'medal');
Icon.STREAM = makePreset('StreamIcon', ['fab', 'twitch']);
Icon.THIRD_PLACE = makePreset('ThirdPlaceIcon', 'award');
const getEntryIcon = entry => {
switch (entry.type) {
+ case 'result.report':
+ return <Icon.RESULT />;
+ case 'round.create':
+ return <Icon.ADD />;
+ case 'round.lock':
+ case 'tournament.lock':
+ return <Icon.LOCKED />;
+ case 'round.unlock':
+ return <Icon.UNLOCKED />;
default:
return <Icon.PROTOCOL />;
}
appName: 'ALttP',
},
icon: {
+ AddIcon: 'Hinzufügen',
DiscordIcon: 'Discord',
EditIcon: 'Bearbeiten',
FinishedIcon: 'Abgeschlossen',
FirstPlaceIcon: 'Erster Platz',
ForfeitIcon: 'Aufgegeben',
+ LanguageIcon: 'Sprache',
LockedIcon: 'Gesperrt',
LogoutIcon: 'Logout',
PendingIcon: 'Ausstehend',
+ ProtocolIcon: 'Protokoll',
+ ResultIcon: 'Ergebnis',
SecondPlaceIcon: 'Zweiter Platz',
StreamIcon: 'Stream',
ThirdPlaceIcon: 'Dritter Platz',
appName: 'ALttP',
},
icon: {
+ AddIcon: 'Add',
DiscordIcon: 'Discord',
EditIcon: 'Edit',
FinishedIcon: 'Finished',
FirstPlaceIcon: 'First Place',
ForfeitIcon: 'Forfeit',
+ LanguageIcon: 'Language',
LockedIcon: 'Locked',
LogoutIcon: 'Logout',
PendingIcon: 'Pending',
+ ProtocolIcon: 'Protocol',
+ ResultIcon: 'Result',
SecondPlaceIcon: 'Second Place',
StreamIcon: 'Stream',
ThirdPlaceIcon: 'Third Place',