Skip to content

Commit

Permalink
Possible fix for svg icons
Browse files Browse the repository at this point in the history
  • Loading branch information
danniehansen committed Mar 11, 2024
1 parent 7a075a5 commit 55a4eb3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/capabilities/board-buttons/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Trello } from '../../types/trello';
import ClockImageWhite from '../../assets/images/clock_white.svg?url';
import ClockImageWhite from '../../assets/images/clock_white.svg';
import { clearToken, getMemberId } from '../../components/trello';
import { isVisible } from '../../utils/visibility';
import { Card } from '../../components/card';
Expand All @@ -16,8 +16,8 @@ export async function getBoardButtons(): Promise<
return [
{
icon: {
light: `${window.location.origin}${ClockImageWhite}`,
dark: `${window.location.origin}${ClockImageWhite}`
light: ClockImageWhite,
dark: ClockImageWhite
},
text: 'Activity timer',
callback: async (t) => {
Expand Down
4 changes: 2 additions & 2 deletions src/capabilities/card-back-section/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Trello } from '../../types/trello';
import ClockImageBlack from '../../assets/images/clock_black.svg?url';
import ClockImageBlack from '../../assets/images/clock_black.svg';

export async function getCardBackSection(
t: Trello.PowerUp.IFrame
): Promise<Trello.PowerUp.CardBackSection> {
return {
title: 'Activity timer',
icon: `${window.location.origin}${ClockImageBlack}`,
icon: ClockImageBlack,
content: {
type: 'iframe',
url: t.signUrl('./index.html', {
Expand Down
8 changes: 4 additions & 4 deletions src/capabilities/card-badges/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Trello } from '../../types/trello';
import EstimateImage from '../../assets/images/estimate.svg?url';
import ClockImageBlack from '../../assets/images/clock_black.svg?url';
import EstimateImage from '../../assets/images/estimate.svg';
import ClockImageBlack from '../../assets/images/clock_black.svg';
import { Card } from '../../components/card';
import { formatTime } from '../../utils/formatting';
import {
Expand All @@ -19,8 +19,8 @@ import {
import { isVisible } from '../../utils/visibility';
import { hasAutoTimer } from '../../utils/auto-timer';

const clockIcon = `${window.location.origin}${ClockImageBlack}`;
const estimateImage = `${window.location.origin}${EstimateImage}`;
const clockIcon = ClockImageBlack;
const estimateImage = EstimateImage;

export async function getCardBadges(
t: Trello.PowerUp.IFrame
Expand Down
4 changes: 2 additions & 2 deletions src/capabilities/card-buttons/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Trello } from '../../types/trello';
import ClockImageBlack from '../../assets/images/clock_black.svg?url';
import ClockImageBlack from '../../assets/images/clock_black.svg';
import { manageTimeCallback } from './callbacks/ManageTime';
import { notificationsCallback } from './callbacks/Notifications';
import { settingsCallback } from './callbacks/Settings';
import { timeSpentCallback } from './callbacks/TimeSpent';
import { isVisible } from '../../utils/visibility';

const icon = `${window.location.origin}${ClockImageBlack}`;
const icon = ClockImageBlack;

export async function getCardButtons(): Promise<Trello.PowerUp.CardButton[]> {
const visible = await isVisible();
Expand Down

0 comments on commit 55a4eb3

Please sign in to comment.