forked from FuelLabs/fuel-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from DevForce99/fix/ui-issues
Fix/UI issues
- Loading branch information
Showing
7 changed files
with
236 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 12 additions & 13 deletions
25
packages/app-explorer/src/systems/Block/components/BlockTimeItem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
import { Text, VStack } from '@fuels/ui'; | ||
|
||
type BlockTimeItemProps = { | ||
time: Date; | ||
timeAgo: string; | ||
}; | ||
|
||
export default function BlockTimeItem({ time, timeAgo }: BlockTimeItemProps) { | ||
const timeDate = new Date(time); | ||
export default function BlockTimeItem({ timeAgo }: BlockTimeItemProps) { | ||
// const timeDate = new Date(time); | ||
|
||
const formattedTime = timeDate.toLocaleString('en-US', { | ||
year: 'numeric', | ||
month: 'short', | ||
day: 'numeric', | ||
hour: 'numeric', | ||
minute: 'numeric', | ||
hour12: true, | ||
}); | ||
// const formattedTime = timeDate.toLocaleString('en-US', { | ||
// year: 'numeric', | ||
// month: 'short', | ||
// day: 'numeric', | ||
// hour: 'numeric', | ||
// minute: 'numeric', | ||
// hour12: true, | ||
// }); | ||
|
||
return ( | ||
<VStack gap="0px"> | ||
<Text className="text-[0.7rem] p-0 m-0 text-[#9f9f9f]">{timeAgo}</Text> | ||
<Text className="text-[0.7rem] p-0 m-0 text-[#9f9f9f] whitespace-nowrap"> | ||
{/* <Text className="text-[0.7rem] p-0 m-0 text-[#9f9f9f] whitespace-nowrap"> | ||
{formattedTime} | ||
</Text> | ||
</Text> */} | ||
</VStack> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 5 additions & 10 deletions
15
packages/app-explorer/src/systems/Block/components/Hero.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.