Skip to content

Commit d0a2c1a

Browse files
committed
fix(extension): update icons to use common repo ui
1 parent 05bf685 commit d0a2c1a

19 files changed

+124
-240
lines changed

clients/extension/components/action-header/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import style from './style.module.css'
2-
import { OverflowMenuIcon } from '../icons/OverflowMenuIcon'
2+
import { OverflowMenuIcon } from '@ui/icons/OverflowMenuIcon'
33
import { PocketLogo } from '../icons/Pocket'
44
// import { SaveFilledIcon } from '../icons/SaveFilledIcon'
55
// import { SaveIcon } from '../icons/SaveIcon'

clients/extension/components/icons/AddNoteIcon.tsx

-56
This file was deleted.

clients/extension/components/icons/ArrowLeftIcon.tsx

-16
This file was deleted.

clients/extension/components/icons/ChevronLeftIcon.tsx

-20
This file was deleted.

clients/extension/components/icons/DeleteIcon.tsx

-8
This file was deleted.

clients/extension/components/icons/NotesIcon.tsx

-8
This file was deleted.

clients/extension/components/icons/OverflowMenuIcon.tsx

-8
This file was deleted.

clients/extension/components/icons/SaveFilledIcon.tsx

-20
This file was deleted.

clients/extension/components/icons/SaveIcon.tsx

-8
This file was deleted.

clients/extension/components/icons/SnippetsIcon.tsx

-8
This file was deleted.

clients/extension/components/notes-footer/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import style from './style.module.css'
2-
import { AddNoteIcon } from '../icons/AddNoteIcon'
3-
import { ChevronLeftIcon } from '../icons/ChevronLeftIcon'
2+
import { AddNoteIcon } from '@ui/icons/AddNoteIcon'
3+
import { ChevronLeftIcon } from '@ui/icons/ChevronLeftIcon'
44

55
// Types
66
import type { Dispatch, SetStateAction } from 'react'

clients/extension/components/saved-footer/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import style from './style.module.css'
22

3-
import { DeleteIcon } from '../icons/DeleteIcon'
4-
import { NotesIcon } from '../icons/NotesIcon'
3+
import { DeleteIcon } from '@ui/icons/DeleteIcon'
4+
import { NotesIcon } from '@ui/icons/NotesIcon'
55

66
// Types
77
import type { Dispatch, SetStateAction } from 'react'

clients/extension/components/waypoint/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import style from './style.module.css'
2-
import { IconSave } from '../icons/icon-save'
3-
import { IconSnippets } from '../icons/icon-snippets'
2+
import { SaveIcon } from '@ui/icons/SaveIcon'
3+
import { SnippetsIcon } from '@ui/icons/SnippetsIcon'
44

55
export function SaveActions({ actionSave }: { actionSave: () => void }) {
66
return (
77
<main>
88
<h2 className={style.title}>Save To Pocket</h2>
99
<div className={style.actions}>
1010
<button onClick={actionSave}>
11-
<IconSave /> Save Url
11+
<SaveIcon /> Save Url
1212
</button>
1313
<button>
14-
<IconSnippets /> Add Clipping
14+
<SnippetsIcon /> Add Clipping
1515
</button>
1616
</div>
1717
</main>

clients/extension/extension.config.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-disable @typescript-eslint/no-unsafe-return */
2+
/* eslint-disable @typescript-eslint/no-unsafe-call */
3+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
4+
5+
module.exports = {
6+
config: (config) => {
7+
config.module.rules.push({
8+
test: /\.tsx?$/,
9+
use: 'ts-loader',
10+
include: /ui/
11+
})
12+
return config
13+
}
14+
}

clients/extension/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"react": "^19.0.0",
1111
"react-dom": "^19.0.0",
1212
"react-markdown": "9.0.3",
13+
"ts-loader": "9.5.2",
1314
"uuid": "11.0.5"
1415
},
1516
"devDependencies": {

0 commit comments

Comments
 (0)