Modal cleanup, begin transitioning towards the new dialog
This commit is contained in:
parent
3834aca3fe
commit
7dd74ecc9d
10 changed files with 121 additions and 96 deletions
18
resources/scripts/components/elements/Code.tsx
Normal file
18
resources/scripts/components/elements/Code.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
interface CodeProps {
|
||||
dark?: boolean | undefined;
|
||||
children: React.ReactChild | React.ReactFragment | React.ReactPortal;
|
||||
}
|
||||
|
||||
export default ({ dark, children }: CodeProps) => (
|
||||
<code
|
||||
className={classNames('font-mono text-sm px-2 py-1 rounded', {
|
||||
'bg-neutral-700': !dark,
|
||||
'bg-neutral-900 text-gray-100': dark,
|
||||
})}
|
||||
>
|
||||
{children}
|
||||
</code>
|
||||
);
|
Reference in a new issue