-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1419 from KelvinTegelaar/dev
Dev to reeeelease
- Loading branch information
Showing
25 changed files
with
679 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1.0 | ||
3.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react' | ||
import { CButtonGroup, CButton, CCard, CCardHeader } from '@coreui/react' | ||
import { useDispatch, useSelector } from 'react-redux' | ||
import { setTenantList } from 'src/store/features/app' | ||
|
||
const TenantListSelector = () => { | ||
const dispatch = useDispatch() | ||
const TenantListSelector = useSelector((state) => state.app.TenantListSelector) | ||
|
||
const SwitchPageSize = (value) => { | ||
dispatch(setTenantList({ TenantListSelector: value })) | ||
} | ||
|
||
return ( | ||
<CCard> | ||
<CCardHeader>Select default Tenant List</CCardHeader> | ||
<CButtonGroup role="group" aria-label="Page Size Switcher"> | ||
<CButton | ||
onClick={() => SwitchPageSize(true)} | ||
active={TenantListSelector ? true : false} | ||
color="secondary" | ||
> | ||
Compressed | ||
</CButton> | ||
<CButton | ||
onClick={() => SwitchPageSize(false)} | ||
active={TenantListSelector ? false : true} | ||
color="secondary" | ||
> | ||
Full list | ||
</CButton> | ||
</CButtonGroup> | ||
</CCard> | ||
) | ||
} | ||
|
||
export default TenantListSelector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.