Skip to content

Commit

Permalink
chore: small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Sep 9, 2023
1 parent 450a06e commit a1d6447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions apps/client/src/components/dispatch/active-deputies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function ActiveDeputies({ initialDeputies }: Props) {
<Button
variant="cancel"
className={classNames(
"px-2 py-2 dark:border dark:border-quinary dark:bg-tertiary dark:hover:brightness-125 group",
"px-2 py-2 dark:border dark:border-quinary dark:bg-tertiary dark:hover:brightness-125 group",
showEmsFilters && "dark:!bg-secondary !bg-gray-500",
)}
onPress={() => setShowFilters("ems-fd", !showEmsFilters)}
Expand All @@ -140,9 +140,7 @@ function ActiveDeputies({ initialDeputies }: Props) {
<ActiveUnitsSearch isLoading={asyncTable.isLoading} type="ems-fd" />

{activeDeputies.length <= 0 ? (
<p className="px-4 py-2 text-neutral-700 dark:text-gray-300">
{t("Ems.noActiveDeputies")}
</p>
<p className="px-4 py-2 text-neutral-700 dark:text-gray-300">{t("Ems.noActiveDeputies")}</p>
) : (
<Table
tableState={tableState}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export function ActiveUnitsSearch({ isLoading, type }: Props) {
<Tooltip.Provider delayDuration={0}>
<Tooltip.Root>
<Tooltip.Trigger>
<p className="text-neutral-700 dark:text-gray-400 my-3 flex items-center gap-2">
{t("showingOnlyLatest12Units")}
<p className="text-neutral-700 dark:text-gray-400 flex items-center gap-2 mt-1">
<InfoCircleFill />
{t("showingOnlyLatest12Units")}
</p>
</Tooltip.Trigger>

Expand All @@ -51,7 +51,7 @@ export function ActiveUnitsSearch({ isLoading, type }: Props) {
{(showFilters as boolean) ? (
<TextField
label={common("search")}
className="w-full relative"
className="w-full relative mt-3 mb-1"
name="search"
value={search as string}
onChange={(value) => setSearch(setSearchType, value)}
Expand Down

0 comments on commit a1d6447

Please sign in to comment.