Skip to content

Commit

Permalink
Fix: #104, #101 Button Alignment mobile and add credential refresh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik cs authored and georgepadayatti committed Apr 7, 2024
1 parent 0faaed7 commit 8edbe6c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>NordXDataspace (NXD)</title>
<link data-rh="true" rel="icon" href="./favicon.ico">
<meta data-rh="true" property="og:image" content="https://nxd.foundation/img/nxd-social-v3.png">
<meta data-rh="true" name="twitter:image" content="https://nxd.foundation/img/nxd-social-v3.png">
<meta data-rh="true" property="og:locale" content="en_GB">
Expand Down
3 changes: 2 additions & 1 deletion src/component/OrganisationDetails/OrgDetailsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ const OrganisationDetailsContainer = (props: Props) => {
}

const verifyConnectionObj = useAppSelector(
(state) => state?.gettingStart?.verifyConnection.data
(state) => state?.gettingStart?.data
);

const isVerify = verifyConnectionObj?.verification?.presentationState == 'verified';


const handleChange = (e) => {
const { name, value } = e.target;
setFormValue({
Expand Down
7 changes: 7 additions & 0 deletions src/container/Home/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,14 @@
box-shadow: none;

.actionListingBtn {
@include breakpoints.tabletAndDown {
flex-direction: column;
}
.MuiButtonBase-root {
@include breakpoints.tabletAndDown {
margin-left: 0px;
width: 310px;
}
text-transform: unset;
border: 1px solid rgb(223, 223, 223);
background: white;
Expand Down
2 changes: 1 addition & 1 deletion src/redux/actionCreators/gettingStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const createVerificationAction = createAction(

export const readVerificationAction = createAction(
ActionTypes.READ_VERIFICATION_ACTION,
(startPoll) => ({
(startPoll?) => ({
payload: startPoll
}),
);
Expand Down
4 changes: 1 addition & 3 deletions src/redux/sagas/dataSourceSaga.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { put, takeLatest } from 'redux-saga/effects';
import * as actionTypes from '../actionTypes/dataSource';
import * as dataSourceAction from '../actionCreators/dataSource';
import { doApiGet, doApiPost } from '../../utils/fetchWrapper';
import { doApiGet } from '../../utils/fetchWrapper';
import { ENDPOINTS } from '../../utils/apiEndpoints';

export function* login(action) {
// const { email, password, callback } = action.payload;

try {
const listUrl = ENDPOINTS.dataSourceList();
const res = yield doApiGet(listUrl);
Expand Down
8 changes: 4 additions & 4 deletions src/redux/sagas/gettingStart.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { put, takeLatest, all, call } from 'redux-saga/effects';
import { put, takeLatest } from 'redux-saga/effects';
import * as actionTypes from '../actionTypes/getingStart';
import * as gettingStartAction from '../actionCreators/gettingStart';
import { doApiGet, doApiPost, doApiPut, doApiGetBlob } from '../../utils/fetchWrapper';
import { doApiGet, doApiPost, doApiPut } from '../../utils/fetchWrapper';
import { ENDPOINTS } from '../../utils/apiEndpoints';
import { imageBlobToBase64 } from '../../utils/utils';

export function* gettingStart() {
try {
const url = ENDPOINTS.gettingStart();
const res = yield doApiGet(url);
yield put(gettingStartAction.gettingStartActionSuccess(res));
yield put(gettingStartAction.readVerificationAction());
} catch (error) {
yield put(gettingStartAction.gettingStartActionFailure(error));
}
Expand Down Expand Up @@ -50,7 +50,7 @@ export function* readVerification(action) {
const startPoll = action.payload;
const url = ENDPOINTS.verification();
const res = yield doApiGet(url);
startPoll(res);
startPoll && startPoll(res);
yield put(gettingStartAction.createVerificationSuccess(res));
} catch(err) {
yield put(gettingStartAction.createVerificationFailure(err));
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ module.exports = env => ({
},
plugins: [
new HtmlWebpackPlugin({
template: path.join(__dirname, "/", "index.html")
template: path.join(__dirname, "/", "index.html"),
favicon: "./public/favicon.ico"
}),
new MiniCssExtractPlugin({
filename: `[name].${timestamp}.css`,
Expand Down

0 comments on commit 8edbe6c

Please sign in to comment.