Skip to content

Commit

Permalink
add dark mode styling to live events
Browse files Browse the repository at this point in the history
  • Loading branch information
MarconLP committed Jun 12, 2024
1 parent f324ec6 commit 4a7805a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/scenes/activity/live/LiveEventsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { TZLabel } from 'lib/components/TZLabel'
import { LemonTable, LemonTableColumns } from 'lib/lemon-ui/LemonTable'
import { liveEventsTableLogic } from 'scenes/activity/live/liveEventsTableLogic'

import { themeLogic } from '~/layout/navigation-3000/themeLogic'
import type { LiveEvent } from '~/types'

const columns: LemonTableColumns<LiveEvent> = [
Expand Down Expand Up @@ -40,13 +41,18 @@ const columns: LemonTableColumns<LiveEvent> = [
export function LiveEventsTable(): JSX.Element {
const { events, stats, streamPaused } = useValues(liveEventsTableLogic)
const { pauseStream, resumeStream } = useActions(liveEventsTableLogic)
const { isDarkModeOn } = useValues(themeLogic)

return (
<div data-attr="manage-events-table">
<div className="mb-4 flex w-full justify-between items-center">
<div className="flex justify-center">
<Tooltip title="Estimate of users active in the last 30 seconds." placement="right">
<div className="flex flex-justify-center items-center bg-white px-3 py-2 rounded border border-3000 text-xs font-medium text-gray-600 space-x-2.5">
<div
className={`flex flex-justify-center items-center px-3 py-2 rounded border border-3000 text-xs font-medium text-gray-600 space-x-2.5 ${
isDarkModeOn ? 'bg-[var(--bg-light)]' : 'bg-white'
}`}
>
<span className="relative flex h-2.5 w-2.5">
<span
className={clsx(
Expand Down

0 comments on commit 4a7805a

Please sign in to comment.