Skip to content

Commit

Permalink
chore: fix JS lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Jan 16, 2025
1 parent 12c26f6 commit 1fe9ddb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default () => {
<>
<div className="flex items-center justify-between mb-6">
<h1 className="text-lg font-semibold">
{__("White Label Settings", "neve")}
{__('White Label Settings', 'neve')}
</h1>

{showPlaceholder && (
Expand All @@ -298,7 +298,7 @@ export default () => {
onClick={() => setShowTierInfo(!showTierInfo)}
>
<LucideMessageCircleQuestion size={18} />
{__("Available in Agency Plan", "neve")}
{__('Available in Agency Plan', 'neve')}
</Button>
)}
</div>
Expand All @@ -307,12 +307,14 @@ export default () => {
{!showPlaceholder && !neveDash.whiteLabelData && (
<Notice icon={CircleFadingArrowUp}>
{__(
"Please reload this page in order to view the White Label Settings",
"neve"
'Please reload this page in order to view the White Label Settings',
'neve'
)}
</Notice>
)}
{!showPlaceholder && !!neveDash.whiteLabelData && <WhiteLabelSettings />}
{!showPlaceholder && !!neveDash.whiteLabelData && (
<WhiteLabelSettings />
)}
</>
);
};
12 changes: 1 addition & 11 deletions assets/apps/dashboard/src/Components/Content/Welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import { LucidePanelsTopLeft } from 'lucide-react';
import Card from '../../Layout/Card';
import { NEVE_HAS_PRO } from '../../utils/constants';
import Link from '../Common/Link';
import ModuleCard from '../ModuleCard';
import ModuleGrid from './ModuleGrid';
import { TransitionWrapper } from '../Common/TransitionWrapper';
import ModuleGrid from './ModuleGrid';

export default () => (
<TransitionWrapper className="grid gap-6">
<CustomizerShortcutsCard />
{!NEVE_HAS_PRO && <ModuleGrid />}
{/* <OldModuleGrid /> */}
</TransitionWrapper>
);

Expand All @@ -29,11 +27,3 @@ const CustomizerShortcutsCard = () => (
</div>
</Card>
);

// const OldModuleGrid = () => (
// <div className="grid xl:grid-cols-2 gap-6">
// {Object.entries(neveDash.modules).map(([slug, moduleData]) => (
// <ModuleCard key={slug} moduleData={moduleData} slug={slug} />
// ))}
// </div>
// );

0 comments on commit 1fe9ddb

Please sign in to comment.