Skip to content

Commit

Permalink
feat: remove everything react-query related
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarajohn committed Nov 8, 2023
1 parent ad5a572 commit 345c943
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 423 deletions.
55 changes: 0 additions & 55 deletions documentation/docs/api/Hooks/useData.md

This file was deleted.

69 changes: 0 additions & 69 deletions documentation/docs/api/Hooks/useDataPagination.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ sidebar_position: 2

## Overview

The new unified `Navigation` component aims to bring together all Orfium products, under a single navigational element in
The new unified [`Navigation`](../../../api/Components/Navigation.mdx) component aims to bring together all Orfium products, under a single navigational element in
addition to refreshing the familiar drawer navigation.
It consists of two main parts:

- **The global navigation bar**: Includes links to all available Orfium products, as well a special action button (available only to administrative users) which gives access to some extra navigational options in the local navigation drawer.
- **The local navigation drawer**: Home to the selected product's navigation and the client picker, which was moved over from the Top Bar. There is also a new optional extra section at the bottom, where products can list links to educational or troubleshooting material.

In order to make usage easier for the user, the `Navigation` component:
* integrates with authentication related data on its own, without the need for user provided logic or actions.
* is solely responsible for controlling its expanded or collapsed state and it's not possible to control this aspect externally.

- integrates with authentication related data on its own, without the need for user provided logic or actions.
- is solely responsible for controlling its expanded or collapsed state and it's not possible to control this aspect externally.

## Usage

Expand Down Expand Up @@ -77,4 +78,3 @@ const Page: React.FC = () => {
);
}
```

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sidebar_position: 2

## Overview

The new `TopBar` component is an essential tool for every Orfium application as it holds information about the currently
The new [`TopBar`](../../../api/Components/TopBar.mdx) component is an essential tool for every Orfium application as it holds information about the currently
logged-in user, and it's also home to the user menu, which includes a list of available actions the user can make.

The component provides a utility slot that sits on the left side, where the user can opt to display things such as
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"prettier-plugin-organize-imports": "^3.2.2",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-query": "^3.22.0",
"react-router-dom": "^5.3.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.4",
Expand All @@ -79,9 +78,8 @@
"@emotion/styled": "^11.10.4",
"@orfium/ictinus": "^4.71.3",
"@sentry/browser": "^7.0.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-query": "^3.10.0"
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"scripts": {
"prebuild": "rimraf dist",
Expand Down
81 changes: 0 additions & 81 deletions src/hooks/data/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions src/hooks/data/useData.ts

This file was deleted.

88 changes: 0 additions & 88 deletions src/hooks/data/useDataPagination.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export { useData } from './data/useData';
export { useDataPagination } from './data/useDataPagination';
export { useAuthentication } from './useAuthentication';
export { useOrfiumProducts } from './useOrfiumProducts';
export { useOrganizations } from './useOrganizations';
Expand Down
1 change: 0 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ export {
} from './currencies';
export { LinkWithStatePassthrough } from './LinkWithStatePassthrough';
export { NavLinkWithStatePassthrough } from './NavLinkWithStatePassthrough';
export { createQueryKey } from './reactQuery';
export { RedirectWithStatePassthrough } from './RedirectWithStatePassthrough';
export type { Optional } from './types';
Loading

0 comments on commit 345c943

Please sign in to comment.