From 3c30761a3bf40a43df7d1dc3426b9cc898df6572 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 15 Mar 2021 12:28:32 +0530 Subject: [PATCH] Ok to OK in file explorer modals --- libs/remix-ui/file-explorer/src/lib/file-explorer.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx index 94ee19d2af..91892e801a 100644 --- a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx +++ b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx @@ -366,7 +366,7 @@ export const FileExplorer = (props: FileExplorerProps) => { const isDir = state.fileManager.isDirectory(path) modal(`Delete ${isDir ? 'folder' : 'file'}`, `Are you sure you want to delete ${path} ${isDir ? 'folder' : 'file'}?`, { - label: 'Ok', + label: 'OK', fn: async () => { try { const fileManager = state.fileManager @@ -545,7 +545,7 @@ export const FileExplorer = (props: FileExplorerProps) => { loadFile(name) } else { modal('Confirm overwrite', `The file ${name} already exists! Would you like to overwrite it?`, { - label: 'Ok', + label: 'OK', fn: () => { loadFile(name) } @@ -560,7 +560,7 @@ export const FileExplorer = (props: FileExplorerProps) => { const publishToGist = () => { modal('Create a public gist', 'Are you sure you want to publish all your files in browser directory anonymously as a public gist on github.com? Note: this will not include directories.', { - label: 'Ok', + label: 'OK', fn: toGist }, { label: 'Cancel', @@ -578,7 +578,7 @@ export const FileExplorer = (props: FileExplorerProps) => { } else { if (data.html_url) { modal('Gist is ready', `The gist is at ${data.html_url}. Would you like to open it in a new window?`, { - label: 'Ok', + label: 'OK', fn: () => { window.open(data.html_url, '_blank') } @@ -808,7 +808,7 @@ export const FileExplorer = (props: FileExplorerProps) => { } if (helper.checkSpecialChars(content)) { modal('Validation Error', 'Special characters are not allowed', { - label: 'Ok', + label: 'OK', fn: () => {} }, null) } else {