Skip to content

Commit

Permalink
🔨 Fix Bug: Importing Styled Components
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldhanekaa committed Jun 20, 2023
1 parent df02cf3 commit 9a7c556
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
11 changes: 2 additions & 9 deletions src/components/View/AppCommands/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
import * as React from "react";
import styled from "styled-components";

import RefreshButton from "../AppCommands/Refresh";
import { MessageCircle } from "lucide-react";
import { ChatGlobalContext } from "src/machines/chat.context";

const AppCommandButtonsContainer = styled.div`
width: 100%;
display: flex;
justify-content: center;
gap: 10px;
`;
export default function AppCommands() {
const globalContext = React.useContext(ChatGlobalContext);

return (
<AppCommandButtonsContainer>
<div className="AppCommandButtonsContainer">
<RefreshButton />
<button
id="LucideIconButton"
Expand All @@ -29,6 +22,6 @@ export default function AppCommands() {
>
<MessageCircle width="15" height="15" />
</button>
</AppCommandButtonsContainer>
</div>
);
}
2 changes: 1 addition & 1 deletion src/components/View/chats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function RenderChatCard({
src="https://www.gstatic.com/lamda/images/sparkle_resting_v2_darkmode_2bdb7df2724e450073ede.gif"
></img>
) : (
<Sparkles color="#2e80f2" />
<Sparkles color="#2e80f2" width="35px" height="35px" />
)}
</div>
<div className="contentContainer">
Expand Down
8 changes: 8 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ If your plugin does not need CSS, delete this file.
gap: 10px;
}

/* AppCommands/index.tsx */
.AppCommandButtonsContainer {
width: 100%;
display: flex;
justify-content: center;
gap: 10px;
}

/* chats.tsx */
.ChatsContainer {
display: flex;
Expand Down

0 comments on commit 9a7c556

Please sign in to comment.