diff --git a/packages/example-nextjs14/src/app/Status.tsx b/packages/example-nextjs14/src/app/Status.tsx index 98ab2e5..d7cfc71 100644 --- a/packages/example-nextjs14/src/app/Status.tsx +++ b/packages/example-nextjs14/src/app/Status.tsx @@ -1,4 +1,6 @@ 'use client'; + +import clsx from 'clsx'; import React from 'react'; import { form } from 'shared/form'; import { useUrlState } from 'state-in-url/next'; @@ -20,7 +22,7 @@ export const Status = React.memo(({ }); return ( -
{'{'}diff --git a/packages/example-nextjs14/src/app/components/GithubLink.tsx b/packages/example-nextjs14/src/app/components/GithubLink.tsx index a08a213..fb9823b 100644 --- a/packages/example-nextjs14/src/app/components/GithubLink.tsx +++ b/packages/example-nextjs14/src/app/components/GithubLink.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import clsx from 'clsx' export const GithubLink = ( props: React.DetailedHTMLProps< @@ -13,11 +14,7 @@ export const GithubLink = ( href="https://github.com/asmyshlyaev177/state-in-url" target="_blank" rel="noopener" - className={`inline-flex items-center px-4 py-2 border - border-transparent text-sm font-medium rounded-md - text-white bg-gray-800 hover:bg-gray-700 - focus:outline-none focus:ring-2 focus:ring-offset-2 - focus:ring-gray-500 ${className}`} + className={clsx("inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-gray-800 hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500", className)} {...rest} >