mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 05:36:00 +02:00
redesign smart playlist, add multisort
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import styles from './json-preview.module.css';
|
||||
|
||||
interface JsonPreviewProps {
|
||||
value: Record<string, any> | string;
|
||||
}
|
||||
|
||||
export const JsonPreview = ({ value }: JsonPreviewProps) => {
|
||||
return <pre style={{ userSelect: 'all' }}>{JSON.stringify(value, null, 2)}</pre>;
|
||||
return (
|
||||
<pre className={styles.preview} style={{ userSelect: 'all' }}>
|
||||
{JSON.stringify(value, null, 4)}
|
||||
</pre>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user