Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description <!-- Write and explain of the changes introduced by this PR for the reviewers to fully understand --> ## Screenshot <!-- Provide a screenshot or gif of the change to demonstrate it --> ## Test Plan <!-- Explain what you tested and why --> <!-- Have any questions? Check out the contributing doc for more --> --- <details open><summary>Generated summary (powered by <a href="https://app.graphite.dev">Graphite</a>)</summary> > ## TL;DR > This pull request updates the Axios request configuration type, and changes the way the admin icon is rendered in the GlobalNav component. > > ## What changed > 1. In `createAPIInstance.ts` and `request.ts`, the type `InternalAxiosRequestConfig` was replaced with `AxiosRequestConfig`. This change was made in the request interceptor and the request function. > 2. In `GlobalNav.tsx`, the admin icon is now rendered directly as a component, instead of being imported as an image source. > > ## How to test > 1. For the Axios request configuration change, ensure that running the `tsc` command does not throw any errors and that tests are passing > 2. For the admin icon change, check the global navigation and verify that the admin icon is displayed correctly. > > ## Why make this change > 1. The `InternalAxiosRequestConfig` type is not part of the public Axios API and should not be used. The `AxiosRequestConfig` type is the correct type to use for Axios request configuration. > 2. Rendering the admin icon directly as a component was required because the icon was imported as a React component </details>
- Loading branch information