|
1 | 1 | import { conform, useForm } from "@conform-to/react"; |
2 | 2 | import { parse } from "@conform-to/zod"; |
3 | | -import { FolderIcon } from "@heroicons/react/20/solid"; |
| 3 | +import { FolderIcon, CommandLineIcon, PuzzlePieceIcon } from "@heroicons/react/20/solid"; |
4 | 4 | import { json, type ActionFunction, type LoaderFunctionArgs } from "@remix-run/node"; |
5 | 5 | import { Form, useActionData, useNavigation } from "@remix-run/react"; |
6 | 6 | import { redirect, typedjson, useTypedLoaderData } from "remix-typedjson"; |
@@ -319,25 +319,24 @@ export default function Page() { |
319 | 319 | <div className="border-t border-charcoal-700" /> |
320 | 320 | <InputGroup> |
321 | 321 | <Label>What are you working on?</Label> |
322 | | - <input |
323 | | - type="hidden" |
324 | | - name="workingOn" |
325 | | - value={JSON.stringify(selectedWorkingOn)} |
326 | | - /> |
| 322 | + <input type="hidden" name="workingOn" value={JSON.stringify(selectedWorkingOn)} /> |
327 | 323 | <Select<string[], string> |
328 | 324 | value={selectedWorkingOn} |
329 | 325 | setValue={setSelectedWorkingOn} |
330 | 326 | placeholder="Select options" |
331 | 327 | variant="secondary/small" |
332 | 328 | dropdownIcon |
| 329 | + icon={<CommandLineIcon className="mr-1 size-4 text-text-dimmed" />} |
333 | 330 | items={shuffledWorkingOn} |
334 | | - className="h-8" |
| 331 | + className="h-8 border-0 bg-charcoal-750 pl-3 text-sm text-text-dimmed transition ring-charcoal-600 hover:bg-charcoal-650 hover:text-text-dimmed hover:ring-1" |
335 | 332 | text={(value) => |
336 | | - value.length === 0 |
337 | | - ? undefined |
338 | | - : value.length <= 2 |
339 | | - ? value.join(", ") |
340 | | - : `${value.slice(0, 2).join(", ")} +${value.length - 2} more` |
| 333 | + value.length === 0 ? undefined : ( |
| 334 | + <span className="text-text-bright"> |
| 335 | + {value.length <= 2 |
| 336 | + ? value.join(", ") |
| 337 | + : `${value.slice(0, 2).join(", ")} +${value.length - 2} more`} |
| 338 | + </span> |
| 339 | + ) |
341 | 340 | } |
342 | 341 | > |
343 | 342 | {(items) => |
@@ -392,14 +391,17 @@ export default function Page() { |
392 | 391 | placeholder="Select options" |
393 | 392 | variant="secondary/small" |
394 | 393 | dropdownIcon |
| 394 | + icon={<PuzzlePieceIcon className="size-4 text-text-dimmed" />} |
395 | 395 | items={[...goalOptions]} |
396 | | - className="h-8" |
| 396 | + className="h-8 border-0 bg-charcoal-750 pl-3 text-sm text-text-dimmed transition ring-charcoal-600 hover:bg-charcoal-650 hover:text-text-dimmed hover:ring-1" |
397 | 397 | text={(value) => |
398 | | - value.length === 0 |
399 | | - ? undefined |
400 | | - : value.length <= 2 |
401 | | - ? value.join(", ") |
402 | | - : `${value.slice(0, 2).join(", ")} +${value.length - 2} more` |
| 398 | + value.length === 0 ? undefined : ( |
| 399 | + <span className="text-text-bright"> |
| 400 | + {value.length <= 2 |
| 401 | + ? value.join(", ") |
| 402 | + : `${value.slice(0, 2).join(", ")} +${value.length - 2} more`} |
| 403 | + </span> |
| 404 | + ) |
403 | 405 | } |
404 | 406 | > |
405 | 407 | {(items) => |
|
0 commit comments