spelling: ephemeral

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2023-09-28 13:17:01 -04:00
parent f77d955839
commit 6471ca74c3
3 changed files with 7 additions and 7 deletions

View File

@ -76,7 +76,7 @@ const RequestTabs = () => {
});
};
// Todo: Must support ephermal requests
// Todo: Must support ephemeral requests
return (
<StyledWrapper className={getRootClassname()}>
{newRequestModalOpen && (

View File

@ -5,14 +5,14 @@ import toast from 'react-hot-toast';
import { uuid } from 'utils/common';
import Modal from 'components/Modal';
import { useDispatch } from 'react-redux';
import { newEphermalHttpRequest } from 'providers/ReduxStore/slices/collections';
import { newEphemeralHttpRequest } from 'providers/ReduxStore/slices/collections';
import { newHttpRequest } from 'providers/ReduxStore/slices/collections/actions';
import { addTab } from 'providers/ReduxStore/slices/tabs';
import HttpMethodSelector from 'components/RequestPane/QueryUrl/HttpMethodSelector';
import { getDefaultRequestPaneTab } from 'utils/collections';
import StyledWrapper from './StyledWrapper';
const NewRequest = ({ collection, item, isEphermal, onClose }) => {
const NewRequest = ({ collection, item, isEphemeral, onClose }) => {
const dispatch = useDispatch();
const inputRef = useRef();
const formik = useFormik({
@ -34,10 +34,10 @@ const NewRequest = ({ collection, item, isEphermal, onClose }) => {
})
}),
onSubmit: (values) => {
if (isEphermal) {
if (isEphemeral) {
const uid = uuid();
dispatch(
newEphermalHttpRequest({
newEphemeralHttpRequest({
uid: uid,
requestName: values.requestName,
requestType: values.requestType,

View File

@ -229,7 +229,7 @@ export const collectionsSlice = createSlice({
}
}
},
newEphermalHttpRequest: (state, action) => {
newEphemeralHttpRequest: (state, action) => {
const collection = findCollectionByUid(state.collections, action.payload.collectionUid);
if (collection && collection.items && collection.items.length) {
@ -1154,7 +1154,7 @@ export const {
requestCancelled,
responseReceived,
saveRequest,
newEphermalHttpRequest,
newEphemeralHttpRequest,
collectionClicked,
collectionFolderClicked,
requestUrlChanged,