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

Update icons for panel tabs #106

Merged
merged 4 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 10 additions & 0 deletions packages/extension/src/icons/attribution-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/extension/src/icons/attribution.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/extension/src/icons/bounce-tracking-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/extension/src/icons/bounce-tracking.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/extension/src/icons/fingerprinting-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/extension/src/icons/fingerprinting.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/extension/src/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ export { default as CookieWhite } from './cookie-white.svg';
export { default as File } from './file.svg';
export { default as FileWhite } from './file-white.svg';
export { default as Check } from './check.svg';
export { default as AttributionIcon } from './attribution.svg';
export { default as AttributionIconWhite } from './attribution-white.svg';
export { default as BounceTrackingIcon } from './bounce-tracking.svg';
export { default as BounceTrackingIconWhite } from './bounce-tracking-white.svg';
export { default as TopicsIcon } from './topics.svg';
export { default as TopicsIconWhite } from './topics-white.svg';
export { default as FingerPrintingIcon } from './fingerprinting.svg';
export { default as FingerPrintingIconWhite } from './fingerprinting-white.svg';
10 changes: 10 additions & 0 deletions packages/extension/src/icons/topics-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/extension/src/icons/topics.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 6 additions & 16 deletions packages/extension/src/view/devtools/components/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import classNames from 'classnames';
* Internal dependencies
*/
import Accordion from './accordion';
import { File, FileWhite } from '../../../../icons';
import { useCookieStore } from '../../stateProviders/syncCookieStore';
import MenuItem from './menuItem';

interface SidebarProps {
tabsNames: string[];
Expand Down Expand Up @@ -191,21 +191,11 @@ const Sidebar: React.FC<SidebarProps> = ({
setIsTabFocused={setIsTabFocused}
/>
) : (
<div
className="flex w-full items-center pl-6 py-0.5"
onClick={() => mainMenuTabSelector(index)}
>
<div className="h-4">
{selectedIndex === index && isTabFocused ? (
<FileWhite />
) : (
<File />
)}
</div>
<div className="block">
<span className="pl-2.5">{name}</span>
</div>
</div>
<MenuItem
handleClick={() => mainMenuTabSelector(index)}
isActive={selectedIndex === index && isTabFocused}
name={name}
/>
)}
</div>
))}
Expand Down
Loading