diff --git a/src/interfaces/interfaces.tsx b/src/interfaces/interfaces.tsx
index 2410b38..783b502 100644
--- a/src/interfaces/interfaces.tsx
+++ b/src/interfaces/interfaces.tsx
@@ -56,4 +56,10 @@ export interface faqContent{
export interface FormDataEvent extends React.FormEvent {
target: HTMLFormElement;
- }
\ No newline at end of file
+ }
+
+ export interface collaborator {
+ name:string,
+ url:string
+ photo:string
+ }
\ No newline at end of file
diff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsx
index 7ce5bf8..40f3c84 100644
--- a/src/pages/LandingPage.tsx
+++ b/src/pages/LandingPage.tsx
@@ -6,6 +6,7 @@ import Collaborators from "../components/Collaborators";
import FAQs from "../components/faqs/FAQsComponent";
function LandingPage() {
+
return (
<>
diff --git a/src/store/reducers/CollaboratorsCall/getCollaboratorsData.tsx b/src/store/reducers/CollaboratorsCall/getCollaboratorsData.tsx
new file mode 100644
index 0000000..3167eb7
--- /dev/null
+++ b/src/store/reducers/CollaboratorsCall/getCollaboratorsData.tsx
@@ -0,0 +1,19 @@
+import { createAsyncThunk } from "@reduxjs/toolkit";
+import axios from "axios";
+
+export const getCollaboratorsData = createAsyncThunk(
+ 'getinitialdataCollaborators',
+ async () => {
+ try {
+ const { data } = await axios.get('http://87.106.229.119/api/collaborators/landing');
+
+ const dataTotal = data.sort(() => Math.random() - 0.5);
+ return dataTotal;
+
+
+
+ } catch (error) {
+ console.log(error);
+ }
+ }
+);
\ No newline at end of file
diff --git a/src/store/reducers/CollaboratorsCall/getCollaboratorsFunctionality.tsx b/src/store/reducers/CollaboratorsCall/getCollaboratorsFunctionality.tsx
new file mode 100644
index 0000000..b7cac1f
--- /dev/null
+++ b/src/store/reducers/CollaboratorsCall/getCollaboratorsFunctionality.tsx
@@ -0,0 +1,31 @@
+import { createSlice } from '@reduxjs/toolkit'
+import { getCollaboratorsData } from './getCollaboratorsData'
+
+const initialState = {
+
+ collaborators:[],
+ maxWidth:750
+
+}
+export const apiSlice = createSlice({
+ name: 'CollaboratorsCard',
+ initialState,
+ reducers: {
+
+ },extraReducers:(builder)=>{
+
+ builder.addCase(getCollaboratorsData.fulfilled,(state,action)=>{
+ state.collaborators = action.payload;
+
+ })
+ }
+})
+
+//export const {} = apiSlice.actions;
+
+
+
+
+
+
+export default apiSlice.reducer
\ No newline at end of file
diff --git a/src/store/reducers/faqsCall/faqsReducer.tsx b/src/store/reducers/faqsCall/faqsReducer.tsx
index 5a4de6d..d1a5289 100644
--- a/src/store/reducers/faqsCall/faqsReducer.tsx
+++ b/src/store/reducers/faqsCall/faqsReducer.tsx
@@ -72,7 +72,7 @@ export const { setFaqs } = apiSlice.actions;
//Put //
- export const putApiFaqs =async(faqId:number, faqContent:any, acces_token:String, dispatch:any)=>{
+ export const putApiFaqs =async(faqId:number, faqContent:any, acces_token:string, dispatch:any)=>{
try{
await axios.put(`http://87.106.229.119/api/faqs/${faqId}`,faqContent,{
headers:{
diff --git a/src/store/store.tsx b/src/store/store.tsx
index 3cacb0f..5a0650d 100644
--- a/src/store/store.tsx
+++ b/src/store/store.tsx
@@ -3,11 +3,13 @@ import { configureStore } from '@reduxjs/toolkit'
import apiPostRegister from './reducers/apiCall/apiPostRegisterLogin'
import faqsReducer from './reducers/faqsCall/faqsReducer'
import appsCallApiFunctionality from './reducers/appsCall/appsCallApiFunctionality'
+import getCollaboratorsFunctionality from './reducers/CollaboratorsCall/getCollaboratorsFunctionality'
export const store = configureStore({
reducer: {
apiPostRegister: apiPostRegister,
faqsReducer:faqsReducer,
- appsCallApiFunctionality:appsCallApiFunctionality
+ appsCallApiFunctionality:appsCallApiFunctionality,
+ getCollaboratorsFunctionality:getCollaboratorsFunctionality
},
})