+
+
}
- variant="primary" onClick={handlePublishAndLaunch}>
+ variant="primary"
+ onClick={handlePublishAndLaunch}
+ style={{
+ flex: 1,
+ justifyContent: 'center',
+ }}
+ >
{launchButtonText}
-
diff --git a/src/styles/_mixins.scss b/src/styles/_mixins.scss
deleted file mode 100644
index 8a38f2d..0000000
--- a/src/styles/_mixins.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-/* -------------------------------------------------------------------------- */
-/* Mixins */
-/* -------------------------------------------------------------------------- */
-
-/**
- * Responsive mixin
- * @param {string} $breakpoint - breakpoint name. Possible values are: small
-*/
-@mixin responsive($breakpoint) {
- @if $breakpoint == small {
- @media only screen and (max-width: 600px) {
- @content;
- }
- }
-}
diff --git a/src/styles/app.scss b/src/styles/app.scss
deleted file mode 100644
index 4b50cdd..0000000
--- a/src/styles/app.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-@use "modal";
-
-@tailwind components;
-@tailwind utilities;
diff --git a/src/styles/modal.scss b/src/styles/modal.scss
deleted file mode 100644
index fa86d29..0000000
--- a/src/styles/modal.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-@use "mixins" as m;
-
-.modal-buttons {
-
- @include m.responsive(small) {
- flex-direction: column;
- align-items: stretch;
- }
-
- display: flex;
- justify-content: flex-end;
- margin-top: 30px;
-
- svg {
- margin-top: 5px;
- }
-
- .is-primary {
- margin-right: 5px;
- box-shadow: none;
- }
-
- .is-secondary {
- box-shadow: none;
- }
-}
diff --git a/src/utils/api/comingSoon.js b/src/utils/api/comingSoon.js
deleted file mode 100644
index 8dfb287..0000000
--- a/src/utils/api/comingSoon.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import { wpSettingsRestRoute } from '../../constants';
-import { resolve } from './resolve';
-
-import apiFetch from '@wordpress/api-fetch';
-
-export async function setComingSoon( comingSoon ) {
- return await resolve(
- apiFetch( {
- url: wpSettingsRestRoute,
- method: 'POST',
- data: {
- comingSoon,
- },
- } ).then()
- );
-}
diff --git a/src/utils/api/resolve.js b/src/utils/api/resolve.js
deleted file mode 100644
index cc363cd..0000000
--- a/src/utils/api/resolve.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export async function resolve(promise) {
- const resolved = {
- body: null,
- error: null
- };
-
- try {
- resolved.body = await promise;
- } catch (e) {
- resolved.error = e;
- }
-
- return resolved;
-}