Skip to content

Commit

Permalink
Update file
Browse files Browse the repository at this point in the history
  • Loading branch information
dankore committed Jun 22, 2020
1 parent f669a32 commit 10620d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/pages/EditBidPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function EditBidPage(props) {

if (response.data == 'Success') {
props.history.goBack();
appDispatch({ type: 'flashMessage', value: 'Bid successfully updated.' });
} else {
appDispatch({ type: 'flashMessageError', value: 'Editing bid failed. Please try again.' });
}
Expand Down Expand Up @@ -381,7 +382,7 @@ function EditBidPage(props) {
<svg className='h-5 w-5 text-blue-300 mr-1 transition ease-in-out duration-150' fill='none' strokeLinecap='round' strokeLinejoin='round' strokeWidth='2' viewBox='0 0 24 24' stroke='currentColor'>
<path d='M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'></path>
</svg>
Submit bid
Save Updates
</button>
</div>
</form>
Expand Down
7 changes: 5 additions & 2 deletions app/pages/EditProjectPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,11 @@ function EditProjectPage(props) {
</div>
</fieldset>

<button disabled={state.isSaving} className='w-full text-white rounded border border-white bg-blue-600 hover:bg-blue-800 px-2 py-3'>
{state.isSaving ? 'Saving...' : 'Save Updates'}
<button disabled={state.isSaving} type='submit' className='relative w-full inline-flex items-center justify-center py-2 border border-transparent text-base leading-6 font-medium rounded-md text-white bg-blue-600 hover:bg-blue-800 focus:outline-none focus:shadow-outline transition duration-150 ease-in-out'>
<svg className='h-5 w-5 text-blue-300 mr-1 transition ease-in-out duration-150' fill='none' strokeLinecap='round' strokeLinejoin='round' strokeWidth='2' viewBox='0 0 24 24' stroke='currentColor'>
<path d='M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'></path>
</svg>
{state.isSaving ? 'Saving...' : 'Save Updates'}
</button>
</form>
</Page>
Expand Down
2 changes: 1 addition & 1 deletion app/pages/SettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function SettingsPage() {
</NavLink>

<NavLink to='/settings/delete-account' activeStyle={activeNavCSS} className={navLinkCSS}>
Change Your Password
Delete Account
</NavLink>
</ul>

Expand Down

0 comments on commit 10620d3

Please sign in to comment.