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

fix(flat-web): 2 icons not import from module #737

Merged
merged 1 commit into from
Jun 10, 2021
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
3 changes: 2 additions & 1 deletion web/flat-web/src/components/CloudStorageButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// TODO: remove this component when multi sub window is Done
import cloudStorageSVG from "../assets/image/cloud-storage.svg";

import { Modal } from "antd";
import { TopBarRightBtn } from "flat-components";
Expand Down Expand Up @@ -27,7 +28,7 @@ export const CloudStorageButton = observer<CloudStorageButtonProps>(function Clo
<>
<TopBarRightBtn
title="Open Cloud Storage"
icon={<img src="/src/assets/image/cloud-storage.svg" />}
icon={<img src={cloudStorageSVG} />}
onClick={showModal}
/>
<Modal
Expand Down
4 changes: 3 additions & 1 deletion web/flat-web/src/components/InviteButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import inviteSVG from "../assets/image/invite.svg";

import React, { useState } from "react";
import { observer } from "mobx-react-lite";
import { RoomItem } from "../stores/RoomStore";
Expand All @@ -15,7 +17,7 @@ export const InviteButton = observer<InviteButtonProps>(function InviteButton({
<div>
<TopBarRightBtn
title="Invite"
icon={<img src="/src/assets/image/invite.svg" />}
icon={<img src={inviteSVG} />}
onClick={() => showInviteModal(true)}
/>
{roomInfo && (
Expand Down