Remove the 'Cancel' button from the Settings pages suggested in #140

pull/141/head
Alex van Andel 2021-05-04 11:36:06 +00:00
parent 75394eed7e
commit df88919d15
2 changed files with 1 additions and 7 deletions

View File

@ -74,9 +74,6 @@ export default function Settings(props) {
</div>
<hr className="mt-8" />
<div className="py-4 flex justify-end">
<button type="button" className="bg-white border border-gray-300 rounded-md shadow-sm py-2 px-4 inline-flex justify-center text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Cancel
</button>
<button type="submit" className="ml-2 bg-blue-600 border border-transparent rounded-md shadow-sm py-2 px-4 inline-flex justify-center text-sm font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Save
</button>

View File

@ -145,9 +145,6 @@ export default function Settings(props) {
</div>
<hr className="mt-8" />
<div className="py-4 flex justify-end">
<button type="button" className="bg-white border border-gray-300 rounded-md shadow-sm py-2 px-4 inline-flex justify-center text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Cancel
</button>
<button type="submit" className="ml-2 bg-blue-600 border border-transparent rounded-md shadow-sm py-2 px-4 inline-flex justify-center text-sm font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Save
</button>
@ -181,4 +178,4 @@ export async function getServerSideProps(context) {
return {
props: {user}, // will be passed to the page component as props
}
}
}