Skip to content

Commit

Permalink
chore: DashBoard -> Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Manoj committed Jan 25, 2025
1 parent e53a221 commit 752d736
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions resources/admin/js/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { SettingsPage } from './pages/SettingsPage';
import { FAQScreen } from './pages/FAQScreen';

export function App() {
const [componentName, setComponentName] = useState('DashBoard');
const [active, setActive] = useState('DashBoard');
const [componentName, setComponentName] = useState('Dashboard');
const [active, setActive] = useState('Dashboard');

const renderComponent = (cName: any) => {
setActive(cName);
Expand Down Expand Up @@ -74,7 +74,7 @@ export function App() {
</Grid.Col>
<Grid.Col span={9}>
<Box p="md" style={{ height: '100vh' }}>
{componentName === 'DashBoard' && (
{componentName === 'Dashboard' && (
<DashboardPage
renderComponent={renderComponent}
/>
Expand Down
8 changes: 4 additions & 4 deletions resources/admin/js/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ export function Navbar(props: any) {
<>
<ScrollArea className="ck-navbar-links">
<Flex
className={`ck-navbar-linksInner ${props.active === 'DashBoard' ? 'ckActive' : ''}`}
onClick={() => handleSettings('DashBoard')}
onKeyDown={(e) => handleKeyDown(e, 'DashBoard')}
className={`ck-navbar-linksInner ${props.active === 'Dashboard' ? 'ckActive' : ''}`}
onClick={() => handleSettings('Dashboard')}
onKeyDown={(e) => handleKeyDown(e, 'Dashboard')}
role="button"
tabIndex={0}
>
<IconHome /> &nbsp;{' '}
<Text ml="xs" fw={600}>
DashBoard
Dashboard
</Text>
</Flex>
<Flex
Expand Down

0 comments on commit 752d736

Please sign in to comment.