Skip to content

Commit

Permalink
test: uncontained list
Browse files Browse the repository at this point in the history
  • Loading branch information
eoaksnes committed Oct 30, 2023
1 parent da96041 commit 3850820
Show file tree
Hide file tree
Showing 7 changed files with 724 additions and 445 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"selectFromScope": "dmss://DemoDataSource/plugins/list/task_list",
"headers": [
"name",
"assigned",
"address"
"assigned"
],
"functionality": {
"type": "PLUGINS:dm-core-plugins/list/FunctionalityConfig",
Expand Down
2 changes: 1 addition & 1 deletion example/src/plugins/table/TestUseListPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const TestUseListPlugin = (props: IUIPlugin) => {
}}
/>
{attribute && attribute.contained && (
<Button onClick={() => addItem(true)}>Add item</Button>
<Button onClick={() => addItem()}>Add item</Button>
)}
{dirtyState && <Button onClick={() => save()}>Save</Button>}
<ul>
Expand Down
1 change: 0 additions & 1 deletion packages/dm-core-plugins/src/list/ListPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export const ListPlugin = (props: IUIPlugin & { config?: TListConfig }) => {
const [showModal, setShowModal] = useState<boolean>(false)
const [expanded, setExpanded] = useState<Record<string, boolean>>({})

// @ts-ignore
const paginatedRows = useMemo(
() =>
items &&
Expand Down
4 changes: 1 addition & 3 deletions packages/dm-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"luxon": "^3.4.3",
"react-icons": "4.10.1",
"react-oauth2-code-pkce": "^1.10.1",
"react-toastify": "^9.1.3",
"uuid": "^9.0.1"
"react-toastify": "^9.1.3"
},
"devDependencies": {
"@testing-library/react": "^14.0.0",
Expand All @@ -27,7 +26,6 @@
"@types/react-dom": "^18.2.7",
"@types/react-router-dom": "^5.3.3",
"@types/styled-components": "^5.1.26",
"@types/uuid": "^9.0.6",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"eslint-plugin-react": "^7.33.2",
Expand Down
Loading

0 comments on commit 3850820

Please sign in to comment.