Skip to content

Commit

Permalink
dashboard settings issue fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvo7670 committed Oct 24, 2024
1 parent 1cacfd8 commit d2c1611
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,6 @@ const ApiCredentialsForm = ({ props, platform, requestHandler, appInfo = [] }) =
</div>
)}
<input type="hidden" name="tempmodaltype" value="twitter" />
{hasAutomatic && !isManual && (
<div
className="wpsp-modal-generate-token-button-wrapper"
>
<a
onClick={ handleProfileConnection }
className="wpsp-modal-generate-token-button"
>
{__("Connect your account", "wp-scheduled-posts")}
</a>
</div>
)}
{(isManual || platform == 'instagram' || platform == "facebook" || platform == "twitter") && (
<form onSubmit={onSubmitHandler}>
<div className="form-group">
Expand Down Expand Up @@ -203,7 +191,22 @@ const ApiCredentialsForm = ({ props, platform, requestHandler, appInfo = [] }) =
>{ __( 'Connect Your Account','wp-scheduled-posts' ) }</button>
</form>
)}
{(isManual || platform == "medium" ) && (
{hasAutomatic && !isManual && (
<>
<div className="wpsp-separator-connect">{ __('OR', 'wp-scheduled-posts') }</div>
<div
className="wpsp-modal-generate-token-button-wrapper"
>
<a
onClick={ handleProfileConnection }
className="wpsp-modal-generate-token-button"
>
{__("Connect your account", "wp-scheduled-posts")}
</a>
</div>
</>
)}
{(platform == "medium" ) && (
<form onSubmit={onSubmitHandler}>
{ platform == 'medium' &&
<div className="form-group">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function MainProfile({
let pageDisabled = wpspSettingsGlobal?.pro_version ? false : true;
let currentActiveAccountType = localStorage.getItem('account_type');

if (props?.type == 'medium') {
if (props?.type == 'facebook') {
options = [
{
value: 'page',
Expand Down
25 changes: 25 additions & 0 deletions includes/Admin/Settings/app/assets/sass/utils/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,31 @@ img {
width: 450px !important;
padding: 28px;
}
.wpsp-separator-connect {
display: flex;
align-items: center;
text-align: center;
font-size: 16px;
color: #d0d4d9;
}

.wpsp-separator-connect::before,
.wpsp-separator-connect::after {
content: '';
flex: 1;
border-bottom: 1px solid #d7dbdf;
}

.wpsp-separator-connect:not(:empty)::before {
margin-right: .25em;
}

.wpsp-separator-connect:not(:empty)::after {
margin-left: .25em;
}
.wpsp-modal-generate-token-button-wrapper {
margin-top: 20px;
}
.error-message {
margin-bottom: 16px;
@media screen and (max-width: 1439px) {
Expand Down

0 comments on commit d2c1611

Please sign in to comment.