Skip to content

Commit

Permalink
remove unnecessary curly brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
ajotka committed Nov 12, 2024
1 parent b8d25f1 commit d0b0252
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export function ErrorReportModal(props: { blueprint: Blueprint }) {
areDisabled={loading || !text}
onCancel={onClose}
onSubmit={onSubmit}
submitText={'Report error'}
submitText="Report error"
/>
</>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ImportFormModal = () => {

return (
<Modal
title={'Import Playground'}
title="Import Playground"
contentLabel='This is a dialog window which overlays the main content of the
page. The modal begins with a heading 2 called "Import
Playground". Pressing the Close Import Window will close
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function ImportForm({
areDisabled={!file}
onCancel={onClose}
onSubmit={handleSubmit}
submitText={'Import'}
submitText="Import"
/>
</>
);
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/website/src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ function Modals(blueprint: Blueprint) {
} else if (currentModal === modalSlugs.IMPORT_FORM) {
return <ImportFormModal />;
} else if (currentModal === modalSlugs.PREVIEW_PR_WP) {
return <PreviewPRModal target={'wordpress'} />;
return <PreviewPRModal target="wordpress" />;
} else if (currentModal === modalSlugs.PREVIEW_PR_GUTENBERG) {
return <PreviewPRModal target={'gutenberg'} />;
return <PreviewPRModal target="gutenberg" />;
} else if (currentModal === modalSlugs.GITHUB_IMPORT) {
return <GithubImportModal
onImported={({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface ModalButtonsProps {
export default function ModalButtons({ submitText = 'Submit', areDisabled = false, areBusy, onCancel, onSubmit }: ModalButtonsProps) {
return (
<Flex
justify={'end'}
justify="end"
className={css.modalButtons}
>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function Sidebar({
aria-orientation={undefined}
>
{/* Padding 3px is because of focus on dropdown button */}
<Flex justify={'space-between'} direction={'row'} style={{ padding: '3px'}}>
<Flex justify="space-between" direction="row" style={{ padding: '3px'}}>
<h1 className="sr-only">WordPress Playground</h1>
<div className={css.sidebarHeader}>
{/* Remove Playground logo because branding isn't finalized. */}
Expand Down Expand Up @@ -127,7 +127,7 @@ export function Sidebar({
}
/>
<RestoreFromZipMenuItem
text={'Import from .zip'}
text="Import from .zip"
onClose={onClose}
disabled={false}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function GithubExportModal({

return (
<Modal
title={'Export to GitHub'}
title="Export to GitHub"
className={css.modal}
onRequestClose={closeModal}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function GithubImportModal({
};
return (
<Modal
title={'Import from GitHub'}
title="Import from GitHub"
className={css.modal}
onRequestClose={closeModal}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function GitHubOAuthGuardModal({ children }: GitHubOAuthGuardProps) {
<>
{ (isModalOpen) &&
<Modal
title={'Connect to GitHub'}
title="Connect to GitHub"
className={cssModal.modal}
onRequestClose={() => {
setIsModalOpen(false);
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/website/src/github/preview-pr/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export default function PreviewPRForm({
areDisabled={submitting}
onCancel={onClose}
onSubmit={handleSubmit}
submitText={'Preview'}
submitText="Preview"
/>
</div>
);
Expand Down

0 comments on commit d0b0252

Please sign in to comment.