Skip to content

Commit

Permalink
Remove non-functional Actions column from demo
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorejb committed Jan 7, 2024
1 parent 3b2d973 commit f0d602e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 23 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trestable",
"version": "0.2.1",
"version": "0.3.0",
"description": "A responsive data table component built with Svelte and Bootstrap.",
"license": "MIT",
"scripts": {
Expand Down
10 changes: 2 additions & 8 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
import Pagination from "$lib/Pagination.svelte";
import Trestable from "$lib/Trestable.svelte";
import PaymentStatus from "./PaymentStatus.svelte";
import PaymentActions from "./PaymentActions.svelte";
export let data: PageData;
const allColumns: Column<Payment>[] = [
{
name: "ID",
property: "id",
breakpoint: "sm",
breakpoint: "md",
},
{
name: "Item",
Expand All @@ -29,7 +28,7 @@
name: "Amount",
property: "amount",
getValue: (d) => formatUSD(d.amount),
breakpoint: "md",
breakpoint: "sm",
},
{
name: "Status",
Expand Down Expand Up @@ -58,11 +57,6 @@
property: "invoiceNum",
breakpoint: "xxl",
},
{
name: "Actions",
tdClass: "text-nowrap small",
component: PaymentActions,
},
];
let paginationIcons = false;
Expand Down
12 changes: 0 additions & 12 deletions src/routes/PaymentActions.svelte

This file was deleted.

1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"sourceMap": true,
"noUnusedLocals": true,
"strict": true,
"module": "NodeNext",
"moduleResolution": "NodeNext"
}
}

0 comments on commit f0d602e

Please sign in to comment.