diff --git a/app/[locale]/error.tsx b/app/[locale]/error.tsx index 09751a84cd7df..55a6c5fdf7922 100644 --- a/app/[locale]/error.tsx +++ b/app/[locale]/error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { ArrowRightIcon } from '@heroicons/react/24/solid'; import { captureException } from '@sentry/nextjs'; import { useTranslations } from 'next-intl'; import type { FC } from 'react'; @@ -37,7 +38,10 @@ const ErrorPage: FC<{ error: Error }> = ({ error }) => {

{t('layouts.error.internalServerError.description')}

- + ); diff --git a/app/[locale]/not-found.tsx b/app/[locale]/not-found.tsx index a49f5100116c4..c6ce677c297eb 100644 --- a/app/[locale]/not-found.tsx +++ b/app/[locale]/not-found.tsx @@ -1,5 +1,6 @@ 'use client'; +import { ArrowRightIcon } from '@heroicons/react/24/solid'; import { useTranslations } from 'next-intl'; import type { FC } from 'react'; @@ -32,7 +33,10 @@ const NotFoundPage: FC = () => {

{t('layouts.error.notFound.description')}

- + ); diff --git a/app/global-error.tsx b/app/global-error.tsx index e67915b8c536a..5bf85dacae365 100644 --- a/app/global-error.tsx +++ b/app/global-error.tsx @@ -1,5 +1,6 @@ 'use client'; +import { ArrowRightIcon } from '@heroicons/react/24/solid'; import { captureException } from '@sentry/nextjs'; import ErrorComponent from 'next/error'; import type { FC } from 'react'; @@ -39,7 +40,10 @@ const GlobalErrorPage: FC<{ error: Error }> = ({ error }) => {

This page has thrown a non-recoverable error.

- + diff --git a/components/Common/Button/index.module.css b/components/Common/Button/index.module.css index 1d86c3b27fc1f..6d6009b267348 100644 --- a/components/Common/Button/index.module.css +++ b/components/Common/Button/index.module.css @@ -1,10 +1,17 @@ .button { @apply relative + inline-flex + items-center + gap-2 px-4.5 py-2.5 text-center font-semibold; + svg { + @apply size-5; + } + &[aria-disabled='true'] { @apply cursor-not-allowed; } diff --git a/components/Common/Button/index.stories.tsx b/components/Common/Button/index.stories.tsx index aa4e4e8797c4d..d10805dc60e54 100644 --- a/components/Common/Button/index.stories.tsx +++ b/components/Common/Button/index.stories.tsx @@ -1,3 +1,4 @@ +import { ArrowRightIcon } from '@heroicons/react/24/solid'; import type { Meta as MetaObj, StoryObj } from '@storybook/react'; import Button from '@/components/Common/Button'; @@ -37,4 +38,17 @@ export const Special: Story = { }, }; +export const WithIcon: Story = { + args: { + kind: 'primary', + children: ( + <> + Back to Home + + + ), + disabled: false, + }, +}; + export default { component: Button } as Meta; diff --git a/components/Common/CodeBox/index.module.css b/components/Common/CodeBox/index.module.css index 2651a58812167..80e1ecd7bb962 100644 --- a/components/Common/CodeBox/index.module.css +++ b/components/Common/CodeBox/index.module.css @@ -66,10 +66,7 @@ } & > .action { - @apply flex - items-center - gap-2 - px-3 + @apply px-3 py-1.5 font-medium; } diff --git a/components/Common/Pagination/index.module.css b/components/Common/Pagination/index.module.css index d1adb45355d7e..9a7b5936e7e98 100644 --- a/components/Common/Pagination/index.module.css +++ b/components/Common/Pagination/index.module.css @@ -10,10 +10,7 @@ .previousButton, .nextButton { - @apply flex - items-center - gap-2 - text-sm; + @apply text-sm; } .previousButton { diff --git a/components/Downloads/DownloadButton/index.module.css b/components/Downloads/DownloadButton/index.module.css index 85948b55433b7..8cb70e57be6c6 100644 --- a/components/Downloads/DownloadButton/index.module.css +++ b/components/Downloads/DownloadButton/index.module.css @@ -1,11 +1,17 @@ .downloadButton { - @apply flex-row - items-center - justify-center - gap-2; + @apply justify-center; + + &.primary { + @apply inline-flex + dark:hidden; + } + + &.special { + @apply hidden + dark:inline-flex; + } svg { - @apply size-5 - dark:opacity-50; + @apply dark:opacity-50; } } diff --git a/components/Downloads/DownloadButton/index.tsx b/components/Downloads/DownloadButton/index.tsx index 8674f82e10f16..38b1068cced1c 100644 --- a/components/Downloads/DownloadButton/index.tsx +++ b/components/Downloads/DownloadButton/index.tsx @@ -25,7 +25,7 @@ const DownloadButton: FC> = ({