Wired frontend for logs

This commit is contained in:
Vladyslav Matsiiako
2023-01-02 09:57:02 -08:00
parent 4af839040e
commit 03b7d3a5ce
4 changed files with 63 additions and 19 deletions

View File

@@ -48,7 +48,7 @@ export default function EventFilter({
<div className="relative">
<Listbox.Button className="bg-mineshaft-800 hover:bg-mineshaft-700 duration-200 cursor-pointer rounded-md h-10 flex items-center justify-between pl-4 pr-2 w-52 text-bunker-200 text-sm">
{selected != '' ? (
<p className="select-none text-bunker-100">{selected}</p>
<p className="select-none text-bunker-100">{t("activity:event." + selected)}</p>
) : (
<p className="select-none">Select an event</p>
)}
@@ -76,7 +76,7 @@ export default function EventFilter({
className={`px-4 h-10 flex items-center text-sm cursor-pointer hover:bg-mineshaft-700 text-bunker-200 rounded-md ${
selected == t("activity:event." + event.name) && 'bg-mineshaft-700'
}`}
value={t("activity:event." + event.name)}
value={event.name}
>
{({ selected }) => (
<>
@@ -90,7 +90,6 @@ export default function EventFilter({
</span>
</>
)}
{/* <FontAwesomeIcon icon={event.icon} className="pr-4" /> {event.name} */}
</Listbox.Option>
);
})}