Skip to content

Commit

Permalink
🔥 Removed .changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Dec 17, 2023
1 parent 0ad78a1 commit 2b6abb3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 38 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ export function SmallNav({
<nav
className={`flex flex-col items-start mt-6`}
>
<a
{/*<a
className={navItemClassName('quickstart')}
onClick={() => click('quickstart')}
>
<p className="mx-4">Quick Start</p>
</a>
</a>*/}
<a
className={navItemClassName('dashboard')}
onClick={() => click('dashboard')}
Expand Down Expand Up @@ -92,7 +92,6 @@ export function SmallNav({
<p className="mx-4">Docs</p>
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 2C2.44772 2 2 2.44772 2 3V12C2 12.5523 2.44772 13 3 13H12C12.5523 13 13 12.5523 13 12V8.5C13 8.22386 12.7761 8 12.5 8C12.2239 8 12 8.22386 12 8.5V12H3V3L6.5 3C6.77614 3 7 2.77614 7 2.5C7 2.22386 6.77614 2 6.5 2H3ZM12.8536 2.14645C12.9015 2.19439 12.9377 2.24964 12.9621 2.30861C12.9861 2.36669 12.9996 2.4303 13 2.497L13 2.5V2.50049V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3.70711L6.85355 8.85355C6.65829 9.04882 6.34171 9.04882 6.14645 8.85355C5.95118 8.65829 5.95118 8.34171 6.14645 8.14645L11.2929 3H9.5C9.22386 3 9 2.77614 9 2.5C9 2.22386 9.22386 2 9.5 2H12.4999H12.5C12.5678 2 12.6324 2.01349 12.6914 2.03794C12.7504 2.06234 12.8056 2.09851 12.8536 2.14645Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>
</a>
{/* Add other nav items as needed */}
</nav>
</SheetContent>
</Sheet>
Expand Down
5 changes: 2 additions & 3 deletions apps/webapp/src/components/dashboard/components/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export function MainNav({
className={`flex flex-col items-start ${className}`}
{...props}
>
<a
{/*<a
className={navItemClassName('quickstart')}
onClick={() => click('quickstart')}
>
Quick Start
</a>
</a>*/}
<a
className={navItemClassName('dashboard')}
onClick={() => click('dashboard')}
Expand Down Expand Up @@ -70,7 +70,6 @@ export function MainNav({
<p className="pr-2">Docs</p>
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 2C2.44772 2 2 2.44772 2 3V12C2 12.5523 2.44772 13 3 13H12C12.5523 13 13 12.5523 13 12V8.5C13 8.22386 12.7761 8 12.5 8C12.2239 8 12 8.22386 12 8.5V12H3V3L6.5 3C6.77614 3 7 2.77614 7 2.5C7 2.22386 6.77614 2 6.5 2H3ZM12.8536 2.14645C12.9015 2.19439 12.9377 2.24964 12.9621 2.30861C12.9861 2.36669 12.9996 2.4303 13 2.497L13 2.5V2.50049V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3.70711L6.85355 8.85355C6.65829 9.04882 6.34171 9.04882 6.14645 8.85355C5.95118 8.65829 5.95118 8.34171 6.14645 8.14645L11.2929 3H9.5C9.22386 3 9 2.77614 9 2.5C9 2.22386 9.22386 2 9.5 2H12.4999H12.5C12.5678 2 12.6324 2.01349 12.6914 2.03794C12.7504 2.06234 12.8056 2.09851 12.8536 2.14645Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>
</a>
{/* Add other nav items as needed */}
</nav>
);
}
4 changes: 2 additions & 2 deletions apps/webapp/src/components/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export default function DashboardPage() {

let ContentComponent;
switch (activePage) {
case 'quickstart':
/*case 'quickstart':
ContentComponent = QuickStartPage;
break;
break;*/
case 'jobs':
ContentComponent = JobsPage;
break;
Expand Down
6 changes: 0 additions & 6 deletions apps/webapp/src/components/main-component/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ export default function MainPage() {

return (
<div className="flex items-center justify-between space-y-2">
{/*<h2 className="text-3xl font-bold tracking-tight">Dashboard</h2>
<div className="flex items-center space-x-2">
<CalendarDateRangePicker />
<Button>Download</Button>
</div>*/
}
<div className="flex-1 space-y-4 p-8 pt-6">
<div className="flex items-center justify-between space-y-2">
<h2 className="text-3xl font-bold tracking-tight">Dashboard</h2>
Expand Down
10 changes: 5 additions & 5 deletions apps/webapp/src/components/shared/team-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) {


useEffect(()=>{
if(projects){
if(projects && projects[0]){
setIdProject(projects[0].id_project);
}
if(orgs){
if(orgs && orgs[0]){
setOrganisationName(orgs[0].name);
setIdOrg(orgs[0].id_organization);
}
Expand Down Expand Up @@ -177,9 +177,9 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) {
<CommandGroup key={"organisations"} heading={"Organisations"}>
{!isloadingOrganisations && orgs && orgs.length > 0 ?
<CommandItem
key={orgs[0].id_organization}
key={orgs[0] ? orgs[0].id_organization: ""}
onSelect={() => {
setIdOrg(orgs[0].id_organization)
setIdOrg(orgs[0] ? orgs[0].id_organization : "")
setOpen(false)
}}
className="text-sm"
Expand All @@ -196,7 +196,7 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) {
<CheckIcon
className={cn(
"ml-auto h-4 w-4",
orgs && orgs.length > 0 && idOrg === orgs[0].id_organization
orgs && orgs.length > 0 && orgs[0] && idOrg === orgs[0].id_organization
? "opacity-100"
: "opacity-0"
)}
Expand Down

0 comments on commit 2b6abb3

Please sign in to comment.