Merge pull request #141 from emrysal/bugfix/remove-settings-cancel-button

Remove the 'Cancel' button from the Settings pages suggested in #140
This commit is contained in:
Bailey Pumfleet
2021-05-05 15:33:18 +01:00
committed by GitHub
2 changed files with 1 additions and 7 deletions
-3
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>
+1 -4
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
}
}
}