fix oven imports
This commit is contained in:
parent
d03892bbcf
commit
d31d154841
2 changed files with 45 additions and 43 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { loadFeaturedPatterns, loadPublicPatterns } from '@src/repl/util.mjs';
|
import { loadFeaturedPatterns, loadPublicPatterns } from '@src/user_pattern_utils.mjs';
|
||||||
import { MiniRepl } from '@src/docs/MiniRepl';
|
import { MiniRepl } from '@src/docs/MiniRepl';
|
||||||
import { PatternLabel } from '@src/repl/panel/PatternsTab';
|
import { PatternLabel } from '@src/repl/panel/PatternsTab';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ function classNames(...classes) {
|
||||||
return classes.filter(Boolean).join(' ');
|
return classes.filter(Boolean).join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
function PatternLabel({ pattern } /* : { pattern: Tables<'code'> } */) {
|
export function PatternLabel({ pattern } /* : { pattern: Tables<'code'> } */) {
|
||||||
const meta = useMemo(() => getMetadata(pattern.code), [pattern]);
|
const meta = useMemo(() => getMetadata(pattern.code), [pattern]);
|
||||||
let title = meta.title;
|
let title = meta.title;
|
||||||
if (title == null) {
|
if (title == null) {
|
||||||
|
|
@ -106,6 +106,7 @@ export function PatternsTab({ context }) {
|
||||||
onChange={(value) => settingsMap.setKey('patternFilter', value)}
|
onChange={(value) => settingsMap.setKey('patternFilter', value)}
|
||||||
items={patternFilterName}
|
items={patternFilterName}
|
||||||
></ButtonGroup>
|
></ButtonGroup>
|
||||||
|
{patternFilter === patternFilterName.user && (
|
||||||
<div>
|
<div>
|
||||||
<div className="pr-4 space-x-4 border-b border-foreground flex max-w-full overflow-x-auto">
|
<div className="pr-4 space-x-4 border-b border-foreground flex max-w-full overflow-x-auto">
|
||||||
<ActionButton
|
<ActionButton
|
||||||
|
|
@ -150,6 +151,7 @@ export function PatternsTab({ context }) {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<section className="flex overflow-y-scroll max-h-full flex-col">
|
<section className="flex overflow-y-scroll max-h-full flex-col">
|
||||||
{patternFilter === patternFilterName.user && (
|
{patternFilter === patternFilterName.user && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue