diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-03-13 05:14:56 +0000 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-03-13 20:17:07 -0400 |
| commit | 2e39671e683f2fdf5a94dafe8d49c4c5befa38c8 (patch) | |
| tree | e1bb7448c1105834b2f59c816b3240c98f869399 /src/Toolbar.tsx | |
| parent | 5374566f2c3fd345ee25ee7896dfbb3156bd2cfd (diff) | |
refactor: finish removing CSS modules
Diffstat (limited to 'src/Toolbar.tsx')
| -rw-r--r-- | src/Toolbar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Toolbar.tsx b/src/Toolbar.tsx index dded98d..32f53ab 100644 --- a/src/Toolbar.tsx +++ b/src/Toolbar.tsx @@ -1,6 +1,6 @@ import { useId } from 'preact/hooks'; import { NodeInfo } from './node.tsx'; -import styles from './Toolbar.module.css'; +import './Toolbar.css'; export interface ToolbarProps { nodes: Record<string, NodeInfo>; @@ -10,12 +10,12 @@ export interface ToolbarProps { export const Toolbar = ({ nodes, onNodeAdded = _ => {} }: ToolbarProps) => { const id = useId(); return ( - <div class={styles.toolbar}> + <div class="__Toolbar"> <menu> <li><button>Edit</button></li> <li><button>Select</button></li> <li> - <menu id={id} class={styles.addMenu} popover="auto"> + <menu id={id} class="addMenu" popover="auto"> {Object.entries(nodes).map(([name, node]) => ( <li><button onClick={() => onNodeAdded(node)}>{name}</button></li> ))} |
