Refactor crash error component, header component, and main page component
- Refactored crash error component to update the background color of the reset button. - Removed commented code in the header component. - Imported BUTTON_DIV_STYLE constant in the main page component.
This commit is contained in:
parent
80a73f93fe
commit
b14d6d4238
3 changed files with 4 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ export default function CrashErrorComponent({ error, resetErrorBoundary }) {
|
|||
<div className="flex justify-center">
|
||||
<button
|
||||
onClick={resetErrorBoundary}
|
||||
className="bg-almost-dark-blue hover:bg-ring text-background font-bold py-2 px-4 rounded mr-4"
|
||||
className="bg-primary hover:bg-ring text-background font-bold py-2 px-4 rounded mr-4"
|
||||
>
|
||||
Reset Application
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -99,7 +99,8 @@ export default function Header() {
|
|||
>
|
||||
<FaDiscord className="h-5 w-5" />
|
||||
</a>
|
||||
{/* <Separator orientation="vertical" />
|
||||
|
||||
<Separator orientation="vertical" />
|
||||
<button
|
||||
className="text-gray-600 hover:text-gray-500 dark:text-gray-300 dark:hover:text-gray-200"
|
||||
onClick={() => {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { Button } from "../../components/ui/button";
|
|||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { CardComponent } from "../../components/cardComponent";
|
||||
import { USER_PROJECTS_HEADER } from "../../constants";
|
||||
import { BUTTON_DIV_STYLE } from "../../constants";
|
||||
export default function HomePage() {
|
||||
const { flows, setTabId, downloadFlows, uploadFlows, addFlow, removeFlow } =
|
||||
useContext(TabsContext);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue