Skip to content

Commit

Permalink
Merge pull request #10387 from hicommonwealth/mkaleem.neslit.10240.da…
Browse files Browse the repository at this point in the history
…shboard_formatting

Mkaleem.neslit.10240.dashboard formatting
  • Loading branch information
Kaleem Neslit authored Dec 24, 2024
2 parents 64094d5 + 4f6fbf5 commit 86109cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
8 changes: 1 addition & 7 deletions packages/commonwealth/client/scripts/views/Sublayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { Breadcrumbs } from './components/Breadcrumbs';
import MobileNavigation from './components/MobileNavigation';
import AuthButtons from './components/SublayoutHeader/AuthButtons';
import useJoinCommunity from './components/SublayoutHeader/useJoinCommunity';
import { UserTrainingSlider } from './components/UserTrainingSlider';
import { CWModal } from './components/component_kit/new_designs/CWModal';
import CollapsableSidebarButton from './components/sidebar/CollapsableSidebarButton';
import { AuthModal, AuthModalType } from './modals/AuthModal';
Expand Down Expand Up @@ -108,11 +107,6 @@ const Sublayout = ({ children, isInsideCommunity }: SublayoutProps) => {
location,
);

const routesWithUserOnboardingSlider = matchRoutes(
[{ path: '/dashboard/for-you' }, { path: '/dashboard/global' }],
location,
);

useEffect(() => {
let timer: NodeJS.Timeout;

Expand Down Expand Up @@ -188,7 +182,7 @@ const Sublayout = ({ children, isInsideCommunity }: SublayoutProps) => {
/>
</div>
{!routesWithoutGenericBreadcrumbs && <Breadcrumbs />}
{routesWithUserOnboardingSlider && <UserTrainingSlider />}

{isInsideCommunity && !routesWithoutGenericSliders && (
<AdminOnboardingSlider />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
} from '../../../../../shared/analytics/types';
import useAppStatus from '../../../hooks/useAppStatus';
import LaunchTokenCard from '../../components/LaunchTokenCard';
import { UserTrainingSlider } from '../../components/UserTrainingSlider';
import { CWText } from '../../components/component_kit/cw_text';
import {
CWTab,
Expand Down Expand Up @@ -92,6 +93,7 @@ const UserDashboard = ({ type }: UserDashboardProps) => {

return (
<CWPageLayout ref={containerRef} className="UserDashboard">
<UserTrainingSlider />
<div key={`${user.isLoggedIn}`}>
<CWText type="h2" fontWeight="medium" className="page-header">
Home
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const processThreadUpvoted: EventHandler<
log.error('Community not found!', undefined, payload);
return false;
}

const provider = notificationsProvider();
const res = await provider.triggerWorkflow({
key: WorkflowKeys.NewUpvotes,
Expand Down

0 comments on commit 86109cf

Please sign in to comment.