mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2026-01-30 09:48:12 +01:00
chore: add imports of styles to jsx files
This commit is contained in:
parent
8384723acc
commit
eec03e3ef8
@ -1,5 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
import './styles.scss';
|
||||||
|
|
||||||
const Options: React.FC = () => {
|
const Options: React.FC = () => {
|
||||||
return <div>Hello World</div>;
|
return <div>Hello World</div>;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { browser, Tabs } from 'webextension-polyfill-ts';
|
import { browser, Tabs } from 'webextension-polyfill-ts';
|
||||||
|
|
||||||
|
import './styles.scss';
|
||||||
|
|
||||||
function openWebPage(url: string): Promise<Tabs.Tab> {
|
function openWebPage(url: string): Promise<Tabs.Tab> {
|
||||||
return browser.tabs.create({ url });
|
return browser.tabs.create({ url });
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user