- Notifications
You must be signed in to change notification settings - Fork1k
fix: updateWorkspacesEmpty.tsx
from material ui to tailwind#16886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
d9254e8
updated to tailwind
rohansinha012d61365
updated WorkspacesEmpty material ui to tailwind
rohansinha015111f08
make fmt
rohansinha0140ac4e5
moved comment before className
rohansinha012e19a4e
removed blank space
rohansinha019c7d3cc
fixed outdated colors from palette
rohansinha018b7f049
updated colors
rohansinha01File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -25,20 +25,8 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({ | ||
const defaultMessage = | ||
"A workspace is your personal, customizable development environment."; | ||
const defaultImage = ( | ||
<div className="max-w-[50%] h-[272px] overflow-hidden mt-12 opacity-85"> | ||
<img src="/featured/workspaces.webp" alt="" className="max-w-full" /> | ||
</div> | ||
); | ||
@@ -56,9 +44,7 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({ | ||
<Link to="/templates">Go to templates</Link> | ||
</Button> | ||
} | ||
className="pb-0" | ||
image={defaultImage} | ||
/> | ||
); | ||
@@ -69,9 +55,7 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({ | ||
<TableEmpty | ||
message={defaultTitle} | ||
description={`${defaultMessage} There are no templates available, but you will see them here once your admin adds them.`} | ||
className="pb-0" | ||
image={defaultImage} | ||
/> | ||
); | ||
@@ -83,70 +67,30 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({ | ||
description={`${defaultMessage} Select one template below to start.`} | ||
cta={ | ||
<div> | ||
<div className="flex flex-wrap gap-4 mb-6 justify-center max-w-[800px]"> | ||
{featuredTemplates?.map((t) => ( | ||
<Link | ||
key={t.id} | ||
to={`${getLink( | ||
linkToTemplate(t.organization_name, t.name), | ||
)}/workspace`} | ||
className="w-[320px] p-4 rounded-md border border-solid border-surface-quaternary text-left flex gap-4 no-underline text-inherit hover:bg-surface-grey" | ||
> | ||
<divclassName="flex-shrink-0 pt-1"> | ||
<Avatar variant="icon" src={t.icon} fallback={t.name} /> | ||
</div> | ||
<div className="w-full min-w-0"> | ||
<h4 className="text-sm font-semibold m-0 overflow-hidden truncate whitespace-nowrap"> | ||
{t.display_name || t.name} | ||
</h4> | ||
<p | ||
// We've had users plug URLs directly into the | ||
// descriptions, when those URLS have no hyphens or other | ||
// easy semantic breakpoints. Need to set this to ensure | ||
// those URLs don't break outside their containing boxes | ||
aslilac marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
className="text-sm text-gray-400 leading-[1.4] m-0 pt-1 break-words" | ||
> | ||
{t.description} | ||
</p> | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.