Skip to content

Commit

Permalink
chore(app-crm): add default sorting to kanban and change default comp…
Browse files Browse the repository at this point in the history
…aniest view (#4883)
  • Loading branch information
alicanerdurmaz authored Aug 31, 2023
1 parent 35113d0 commit 07229c4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/app-crm/src/routes/companies/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type View = "card" | "table";
export const CompanyListPage: FC<PropsWithChildren> = ({ children }) => {
const { pathname } = useLocation();
const { createUrl } = useNavigation();
const [view, setView] = useState<View>("table");
const [view, setView] = useState<View>("card");
const go = useGo();

const {
Expand Down Expand Up @@ -130,7 +130,7 @@ export const CompanyListPage: FC<PropsWithChildren> = ({ children }) => {
<Radio.Button value="table">
<UnorderedListOutlined />
</Radio.Button>
<Radio.Button value="list">
<Radio.Button value="card">
<AppstoreOutlined />
</Radio.Button>
</Radio.Group>
Expand Down
6 changes: 6 additions & 0 deletions examples/app-crm/src/routes/scrumboard/kanban/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ export const KanbanPage: FC<PropsWithChildren> = ({ children }) => {
pagination: {
mode: "off",
},
sorters: [
{
field: "createdAt",
order: "asc",
},
],
meta: {
fields: ["id", "title"],
},
Expand Down
6 changes: 6 additions & 0 deletions examples/app-crm/src/routes/scrumboard/sales/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ export const SalesPage: FC<PropsWithChildren> = ({ children }) => {
pagination: {
mode: "off",
},
sorters: [
{
field: "createdAt",
order: "asc",
},
],
meta: {
fields: [
"id",
Expand Down

0 comments on commit 07229c4

Please sign in to comment.