diff --git a/src/assets/icons/CsaIncomingIconSquare.tsx b/src/assets/icons/CsaIncomingIconSquare.tsx new file mode 100644 index 00000000..bea3da10 --- /dev/null +++ b/src/assets/icons/CsaIncomingIconSquare.tsx @@ -0,0 +1,36 @@ +import * as React from "react" +import Svg, { Rect, Mask, Path, G } from "react-native-svg" + +function CsaIncomingIconSquare() { + return ( + + + + + + + + + + ) +} + +export default CsaIncomingIconSquare; diff --git a/src/assets/icons/CsaOutgoingRequestSquareIcon.tsx b/src/assets/icons/CsaOutgoingRequestSquareIcon.tsx new file mode 100644 index 00000000..91b03dcf --- /dev/null +++ b/src/assets/icons/CsaOutgoingRequestSquareIcon.tsx @@ -0,0 +1,39 @@ +import * as React from "react" +import Svg, { Rect, Mask, Path, G } from "react-native-svg" + +function CsaOutgoingRequestSquareIcon() { + return ( + + + + + + + + + + ) +} + +export default CsaOutgoingRequestSquareIcon; diff --git a/src/components/utlis/apiHelper.ts b/src/components/utlis/apiHelper.ts index ccec8c5f..e9910ac1 100644 --- a/src/components/utlis/apiHelper.ts +++ b/src/components/utlis/apiHelper.ts @@ -69,7 +69,8 @@ export enum ApiKeys { GET_VISIBILITY_STATUS = 'GET_VISIBILITY_STATUS', GET_CSA_TICKETS = 'GET_CSA_TICKETS', - GET_CSA_SINGLE_TICKET = 'GET_CSA_SINGLE_TICKET', + h + = 'GET_CSA_SINGLE_TICKET', CREATE_TICKET = 'CREATE_TICKET', ACKNOWLEDGE_TICKET = 'ACKNOWLEDGE_TICKET', ADD_COMMENT = 'ADD_COMMENT', @@ -301,13 +302,14 @@ axiosInstance.interceptors.response.use( ); axiosInstance.defaults.headers.common['Content-Type'] = 'application/json'; -axiosInstance.defaults.headers.common['routing_key'] = '2aeff6e1-c6c8-4cf2-9e47-daf3de565483'; +axiosInstance.defaults.headers.common['routing_key'] = 'e953bef9-6427-467c-b825-a6b3409a7a69'; axiosInstance.defaults.baseURL = BASE_AV_APP_URL; // TODO:: Ideally should happen through middlewares. export const registerNavigateAndDispatch = (dispatchParam: Dispatch) => (dispatch = dispatchParam); + export const isAxiosError = (err: Error) => { return axios.isAxiosError(err); }; diff --git a/src/screens/cosmosSupport/CSAFilters.tsx b/src/screens/cosmosSupport/CSAFilters.tsx index 6e3f57d6..5d7af19e 100644 --- a/src/screens/cosmosSupport/CSAFilters.tsx +++ b/src/screens/cosmosSupport/CSAFilters.tsx @@ -1,4 +1,4 @@ -import { Pressable, StyleSheet, TouchableHighlight, View } from 'react-native' +import {Pressable, StyleSheet, Switch, TouchableHighlight, View} from 'react-native' import React, { useState } from 'react' import { GenericStyles, getShadowStyle } from '@rn-ui-lib/styles' import Button from '@rn-ui-lib/components/Button' @@ -15,6 +15,11 @@ import { FilterOptions } from './constant' import Text from '@rn-ui-lib/components/Text' import { navigateToScreen } from '@components/utlis/navigationUtlis' import { ProfileScreenStackEnum } from '@screens/Profile/ProfileStack' +import TextInput from "@rn-ui-lib/components/TextInput"; +import IconButton from "@rn-ui-lib/components/IconButton"; +import FilterIcon from "@assets/icons/FilterIcon"; +import {noop} from "@rn-ui-lib/utils/common"; +import SearchIcon from "@rn-ui-lib/icons/SearchIcon"; const HeaderNode = () => { @@ -70,28 +75,35 @@ const CSAFilters: React.FC = (props) => { GenericStyles.p16, GenericStyles.row, GenericStyles.justifyContentSpaceBetween, + GenericStyles.alignCenter, { ...getShadowStyle(1) }, GenericStyles.whiteBackground, ]} > -