Skip to content
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
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ patches/
apps/api-reference
apps/staking
apps/insights
apps/entropy-debug
apps/entropy-debugger
governance/pyth_staking_sdk
packages/*
1 change: 0 additions & 1 deletion apps/api-reference/src/components/Code/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ type CopyButtonProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
const CopyButton = ({ children, className, ...props }: CopyButtonProps) => {
const [isCopied, setIsCopied] = useState(false);
const copy = useCallback(() => {
// eslint-disable-next-line n/no-unsupported-features/node-builtins
navigator.clipboard
.writeText(children)
.then(() => {
Expand Down
1 change: 0 additions & 1 deletion apps/entropy-debugger/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ const Info = ({ state }: { state: TxStateContext }) => {
</pre>
<button
onClick={() => {
// eslint-disable-next-line n/no-unsupported-features/node-builtins
navigator.clipboard.writeText(state.data).catch(() => {
/* no-op on error */
});
Expand Down
1 change: 0 additions & 1 deletion apps/insights/src/components/CopyButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const CopyButton = ({ text, children, className, ...props }: Props) => {
const [isCopied, setIsCopied] = useState(false);
const logger = useLogger();
const copy = useCallback(() => {
// eslint-disable-next-line n/no-unsupported-features/node-builtins
navigator.clipboard
.writeText(text)
.then(() => {
Expand Down
3 changes: 0 additions & 3 deletions apps/insights/src/components/Root/search-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ const SearchText = () => {
};

const SearchTextImpl = () => {
// This component can only ever render in the client so we can safely ignore
// this eslint rule.
// eslint-disable-next-line n/no-unsupported-features/node-builtins
const isMac = useMemo(() => navigator.userAgent.includes("Mac"), []);
return isMac ? "⌘ K" : "Ctrl K";
};
Loading