Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(platform): Add SVGs to projectTabs #673

Merged
merged 4 commits into from
Jan 30, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
code formatting
  • Loading branch information
mrswastik-robot committed Jan 28, 2025
commit 83b30fb960d82ada091e5bb6a2d7c5c41c9731e1
7 changes: 1 addition & 6 deletions apps/platform/src/components/ui/line-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ function Tab({
type="button"
>
<span className="relative z-10 flex items-center gap-2">
{icon && (
<span className={"w-4 h-4"}>
{icon}
</span>
)}
{icon && <span className={'h-4 w-4'}>{icon}</span>}
{text}
</span>
{selected ? (
Expand Down Expand Up @@ -82,7 +78,6 @@ function LineTab({ customID, tabs }: LineTabsProps): React.JSX.Element {
const pathname = usePathname()

const getIcon = (tab: string): React.ReactNode => {

if (pathname.split('/')[1] !== 'project') return null

switch (tab.toLowerCase()) {
Expand Down
Loading