diff --git a/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap b/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap index 2ef830d0438dda2f7df1c8804bbd9b18fc06db79..54b61d3b1f5a263d014ee6bd852b8d10787723da 100644 --- a/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap +++ b/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap @@ -216,203 +216,607 @@ exports[`FileViewer/TypeScriptFile matches snapshot 1`] = ` class="border-border overflow-hidden rounded-md border" >
+
+
+
+ 1
+
+
+ import
+
+
+ { useState }
+
+
+ from
+
+
+ "react"
+
+
+ ;
+
+
+
+
+
+
+ 2
+
+
+
+
+
+
+ 3
+
+
+ interface
+
+
+ CounterProps
+
+
+ {
+
+
+
+
+
+
+ 4
+
+
+ initial
+
+
+ ?:
+
+
+ number
+
+
+ ;
+
+
+
+
+
+
+ 5
+
+
+ }
+
+
+
+
+
+
+ 6
+
+
+
+
+
+
+ 7
+
+
+ export
+
+
+ function
+
+
+ Counter
+
+
+ ({
+
+
+ initial
+
+
+ =
+
+
+ 0
+
+
+ }
+
+
+ :
+
+
+ CounterProps
+
+
+ ) {
+
+
+
+
+
+
+ 8
+
+
+ const
+
+
+ [
+
+
+ count
+
+
+ ,
+
+
+ setCount
+
+
+ ]
+
+
+ =
+
+
+ useState
+
+
+ (initial);
+
+
+
+
+
+
+ 9
+
+
+
+
+
+
+ 10
+
+
+ return
+
+
+ (
+
+
+
+
+
+
+ 11
+
+
+ <
+
+
+ div
+
+
+ >
+
+
+
+
+
+
+ 12
+
+
+ <
+
+
+ p
+
+
+ >Count: {count}</
+
+
+ p
+
+
+ >
+
+
+
+
+
+
+ 13
+
+
+ <
+
+
+ button
+
+
+ onClick
+
+
+ =
+
+
+ {()
+
+
+ =>
+
+
+ setCount
+
+
+ (
+
+
+ c
+
+
+ =>
+
+
+ c
+
+
+ +
+
+
+ 1
+
+
+ )}>
+
+
+
+
+
+
+ 14
+
+
+ Increment
+
+
+
+
+
+
+ 15
+
+
+ </
+
+
+ button
+
+
+ >
+
+
+
+
+
+
+ 16
+
+
+ </
+
+
+ div
+
+
+ >
+
+
+
+
+
+
+ 17
+
+
+ );
+
+
+
+
+
+
+ 18
+
+
+ }
+
+
+
+
+
+