Skip to content

Commit

Permalink
Polish up UI
Browse files Browse the repository at this point in the history
Props to Hunter.
  • Loading branch information
alecmev committed Nov 12, 2024
1 parent 6f2a81d commit bfc6bd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions plugins/google-sheets/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function App({ pluginContext }: AppProps) {
return (
<Problem height={132} spreadsheetId={context.spreadsheetId} setContext={setContext}>
<p className="text-content">
Your Google Account has no access to the synced Google spreadsheet. Check your access and try again
Your Google Account does not have access to the synced spreadsheet. Check your access and try again
or{" "}
<a
href="#"
Expand All @@ -200,11 +200,11 @@ export function App({ pluginContext }: AppProps) {

if (context.type === "sheet-by-title-missing") {
return (
<Problem height={165} spreadsheetId={context.spreadsheetId} setContext={setContext}>
<Problem height={157} spreadsheetId={context.spreadsheetId} setContext={setContext}>
<p className="text-content">
Unable to access the synced sheet:{" "}
<div
className="my-2 font-black truncate cursor-pointer"
className="my-1 font-black truncate cursor-pointer"
title="Click to copy"
onClick={() => {
navigator.clipboard.writeText(context.title)
Expand Down
8 changes: 4 additions & 4 deletions plugins/google-sheets/src/pages/Problem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function Problem({ height, spreadsheetId, setContext, children }: Props)
})
}, [height])

const handleViewClick = () => {
const handleOpenClick = () => {
window.open(`https://docs.google.com/spreadsheets/d/${spreadsheetId}`, "_blank")
}

Expand All @@ -41,10 +41,10 @@ export function Problem({ height, spreadsheetId, setContext, children }: Props)
</Button>
{spreadsheetId && (
<Button
className="w-auto !bg-[#15C43E] text-white hover:bg-[#15C43E] text-nowrap"
onClick={handleViewClick}
className="w-auto flex-1 !bg-[#15C43E] text-white hover:bg-[#15C43E]"
onClick={handleOpenClick}
>
View Spreadsheet
Open Sheet
</Button>
)}
</div>
Expand Down

0 comments on commit bfc6bd1

Please sign in to comment.